-
Notifications
You must be signed in to change notification settings - Fork 77
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(bridge-withdrawer, cli)!: use decimals from erc20 contract (#1762)
## Summary Updates CLI and bridge withdrawer to read the decimals off the contract when it is an erc20, to get the accurate decimals to utilize during withdrawal. ## Background Previously it was assumed that all erc20 contracts would have 18 decimals this is not guaranteed. #1760 is a similar fix but relies on configuring the withdrawer correctly. This version automatically reads off of the contract instead if it is an erc20. ## Changes - Read decimals off contract if or fallback to native prevision. ## Testing Ran against Flame to ensure it gets decimals correct on 6 decimal contract + CI tests. ## Changelogs Changelogs updated. --------- Co-authored-by: Richard Janis Goldschmidt <[email protected]>
- Loading branch information
1 parent
d9913bb
commit ca72c64
Showing
6 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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