gemwalletcom / gem-ios

Gem - Open Source iOS Crypto Wallet
https://gemwallet.com
GNU General Public License v3.0
32 stars 3 forks source link

RUNE fees calculation not dynamic #102

Open l0vvkey opened 2 months ago

l0vvkey commented 2 months ago

telegram-cloud-photo-size-5-6071113350558891865-y

Fees calculation for rune is not automatic. Had to keep lowering the amount I was trying to send. It keeps on failing.

https://runescan.io/address/thor16cxx4vds2e7xrsksx7w964pphc8flrjqhq7tp9

0xh3rman commented 2 months ago

We need to implement https://docs.cosmos.network/api#tag/Service/operation/Simulate

gemcoder21 commented 2 months ago

We need to implement https://docs.cosmos.network/api#tag/Service/operation/Simulate

Long term we should definitely do that. Afaik Rune has static fee for transfer, which could be read from their config api (need to check which api)

0xh3rman commented 2 months ago

Good point, must be this api https://thornode.thorswap.net/thorchain/doc /thorchain/constants

"NativeTransactionFee": 2000000,
0xh3rman commented 2 months ago

I checked the failed txs, it complained about insufficient funds, so maybe the node was not sync and the balance showed incorrectly?