White-Whale-Defi-Platform / white-whale-frontend

An open-source interface for multiple CosmWasm decentralized exchanges across chains. Additionally there are Pools and Flashloan enabled Vaults deployed on each chain as part of the White Whale's Liquidity Platform.
https://app.whitewhale.money
Apache License 2.0
24 stars 24 forks source link

fix/claiming bonding rewards on terra #259

Closed silvermind closed 1 year ago

silvermind commented 1 year ago

with Keplr wallet I got an instant failure (assuming simulation failed) with:

Claiming Failed. Failed to execute transaction.

with Terra Station (assuming no simulation is implemented) i got:

out of gas in location: wasm contract; gasWanted: 350000, gasUsed: 369696: out of gas

Not sure if terra changes something on their fees (tested various endpoints) or if it takes need more gas to claim the up to 21days worth of rewards.


I tried to create a PR, but stuck somewhere here 🙃

For Station the gas-magic seems here, but I've no idea how to adapt these values to make it work. 👀 https://github.com/White-Whale-Defi-Platform/white-whale-frontend/blob/main/hooks/useTerraStation.tsx#L57

Also not sure what these values are for: https://github.com/White-Whale-Defi-Platform/white-whale-frontend/blob/main/public/mainnet/chain_info.json#L138

Happy to send a PR if you can point me to the correct direction.

silvermind commented 1 year ago

ty for fixing the bug