gnosischain / issues

Issue Tracker for Gnosis Chain
2 stars 0 forks source link

[Chiado] Deposits UI does only convert GNOs #9

Closed giacomolicari closed 1 year ago

giacomolicari commented 1 year ago

Deposits UI (https://deposit.gnosischain.com) is not completely depositing mGNO into the deposit contract, instead it just converts GNO into mGNO.

Sample transactions:

filoozom commented 1 year ago

I haven't found the root cause yet (nor have I really looked for it), but right now the deposit UI only converts 1 GNO to 32 mGNO and that's it. The same actually happens with the deposit CLI, using the following configuration:

TOKEN_ADDRESS=0x19C653Da7c37c66208fbfbE8908A5051B57b4C70
WRAPPER_ADDRESS=0x917947dC7E341d843ab38e91623bcAeb65512b75
DEPOSIT_CONTRACT_ADDRESS=0xb97036A26259B7147018913bD58a774cf91acf25
START_BLOCK_NUMBER=155435

The "working deposit" transaction cited above is actually a bit different, and instead of doing the GNO -> mGNO conversion + depositing it only does the latter, which I was able to achieve with the deposit CLI using the following configuration:

META_TOKEN_ADDRESS=0xc5be8bf53755a41c2385e7aa86f6a9e28746f466
DEPOSIT_CONTRACT_ADDRESS=0xb97036A26259B7147018913bD58a774cf91acf25
START_BLOCK_NUMBER=155435

Resulting in the following transaction: https://blockscout.chiadochain.net/tx/0xb814f3c3140c580d220822b44c82cc3d7234ff9fbd70ee70203f445e4294017d. This of course assumes that the wallet already has 32 mGNO.

alebanzas commented 1 year ago

I will close this issue. The potential paths are:

  1. Get GNO and deposit, the tool will convert into mGNO without much interaction: https://deposit.gnosischain.com
  2. From mGNO already (or convert manually GNO->mGNO) deposit: https://mgno.validategnosis.com/