-
Hello, When we use the solid-vite example, and when we select :
The broadcastTx function works well. But, if we modify the amount in MsgSend, from "1" (i.e. 1 uluna / 0.000001 LUNC) to "1000000" (i.e. 1M uluna / 1 LUNC), the broadcastTx function return an error.
It seems that the pb is related to the TerraClassic on-chain tax (0.5% of sended amount), which is in addition to gas costs. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
Hey @JeromeTGH, I've converted this issue into a discussion as it's not inherently an issue with CosmES, but with how Terra Classic handles fees. Since Terra Classic has a burn tax of 0.5%, you'll need to add the cosmes/examples/solid-vite/src/App.tsx Line 243 in 78770ce This is because the fee estimation in Terra Classic does NOT take into consideration the burn tax. |
Beta Was this translation helpful? Give feedback.
-
Okay, thanks @AaronCQL ! I solved this problem as follows (in manual testing)
Perhaps can we complete your estimateFee function, with one more optional parameter (feeToAdd, for example). What do you think about that ? |
Beta Was this translation helpful? Give feedback.
Hey @JeromeTGH, I've converted this issue into a discussion as it's not inherently an issue with CosmES, but with how Terra Classic handles fees.
Since Terra Classic has a burn tax of 0.5%, you'll need to add the
5000uluna
(0.5% of the1000000uluna
you are trying to send) into the gas fees that was estimated:cosmes/examples/solid-vite/src/App.tsx
Line 243 in 78770ce
This is because the fee estimation in Terra Classic does NOT take into consideration the burn tax.