ten-nex / archway

Archway Network
https://archway.io
Other
0 stars 0 forks source link

feat(x/rewards): refund ONLY flat fee on failed txs #7

Open ten-nex opened 2 months ago

ten-nex commented 2 months ago

Currently, if a TX fails both computational fees and contract premiums will be deducted from the TX sender's balance. This is fine for computational fees but not for contract premiums, currently we cannot do it due to SDK limitations.

ten-nex commented 2 months ago

An error occurred while processing this issue: Error suggesting changes: error reading requested files: error reading file x/rewards/keeper/fee_deduction.go: open /var/folders/g9/x_1j1rd17mvc_s975q7kvv6m0000gq/T/ten-nex/archway/x/rewards/keeper/fee_deduction.go: no such file or directory

If this issue persists, please report it to our issues repository: https://github.com/ten-nex/pilot-issues/issues

ten-nex commented 2 months ago

An error occurred while processing this issue: Error suggesting changes: error reading requested files: error reading file x/rewards/keeper/fee_deduction.go: open /var/folders/g9/x_1j1rd17mvc_s975q7kvv6m0000gq/T/ten-nex-archway-issue-7-1726600927571091000/x/rewards/keeper/fee_deduction.go: no such file or directory

If this issue persists, please report it to our issues repository: https://github.com/ten-nex/pilot-issues/issues

ten-nex commented 2 months ago

I'm starting to work on this issue. I'll update this comment with my progress.

ten-nex commented 2 months ago

An error occurred while processing this issue: Error suggesting changes: error reading requested files: error reading file x/rewards/types/helpers.go: open /tmp/ten-nex-archway-issue-7-1726782629852883774/x/rewards/types/helpers.go: no such file or directory

If this issue persists, please report it to our issues repository: https://github.com/ten-nex/pilot-issues/issues