TokenScript icon indicating copy to clipboard operation
TokenScript copied to clipboard

Improve Activity - CofiX

Open colourfreak opened this issue 5 years ago • 3 comments
trafficstars

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. Screenshot 2020-10-26 at 08 26 41

colourfreak avatar Oct 26 '20 11:10 colourfreak

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

SmartLayer avatar Oct 26 '20 11:10 SmartLayer

We can use the Activity opened view, where we can add more info.

Example: Screenshot 2020-10-26 at 12 37 11

And maybe a button that takes you to the Cofix app?

colourfreak avatar Oct 26 '20 11:10 colourfreak

Still working on it and yes we can use the full view.

SmartLayer avatar Oct 31 '20 11:10 SmartLayer