TokenScript
TokenScript copied to clipboard
Improve Activity - CofiX
Swap
- Approved Smart Contract
- Swapped 1.1 ETH to 278 USDT
- Failed to swap 1.1 ETH for 278 USDT
Pools ADD LIQUIDITY
- Approved Smart Contract
- Added to Liquidity Pool
- Sent 500 USDT (-500 USDT)
- Sent 1 ETH (-1 ETH)
WITHDRAW LIQUIDITY - sent you an example of this
- Approved Smart Contract
- Withdrew 20 Xtokens
- Received 300 USDT (+300 USDT)
DEPOSIT TO MINING
- Approved Smart Contract
- Deposited 20 XTokens (-20 XT-1)
REMOVE LIQUIDITY
- Approved Smart Contract
- Withdrew 20 Xtokens from Mining Pool (+20 XT-1)
CoFi
- Claimed 20 CoFi
Dividend DEPOSIT COFI
- Deposited 20 CoFi (-20 CoFi)
WITHDRAW COFI
- Withdrew 20 CoFi (+20 CoFi)
CLAIM
- Claimed 11 ETH (+11 ETH)
Inside the Cofix Web app we will have only links to Etherscan, but in AlphaWallet we track it as activities with dates etc.

Comment copied from Tomek:
The real issue is showing the context, in the wallet you would see a bunch of events but saying this is related to a particular operation is the hard task, it would lack the context. E.g. you would see that you have recieved 10 cofi but the user wouldn't know it was because they got it from mining xTokens
We can use the Activity opened view, where we can add more info.
Example:

And maybe a button that takes you to the Cofix app?
Still working on it and yes we can use the full view.