-
Notifications
You must be signed in to change notification settings - Fork 88
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(sequencer)!: add fee for
Ics20Withdrawal
action (#733)
## Summary add `fee_asset_id` to the `Ics20Withdrawal` action and charge for it, `ICS20_WITHDRAWAL_FEE` is arbitrarily set to 24 right now. ## Background don't want IBC transfers to be free as they can be submitted by anyone. ## Changes - add `ICS20_WITHDRAWAL_FEE = 24` - add `fee_asset_id` to the `Ics20Withdrawal` action - check for enough balance to pay for fee in `check_stateful`, deduct fee from balance in `execute` ## Testing hermes testing ## Breaking Changelist - `Ics20Withdrawal` is no longer free but this doesn't really affect anything currently deployed as we haven't used it. ## Related Issues closes #718
- Loading branch information
Showing
4 changed files
with
79 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters