-
Notifications
You must be signed in to change notification settings - Fork 904
imp(erc20): adjust erc20 authorizations handling #2012
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
26 commits
Select commit
Hold shift + click to select a range
1a32b8a
add test cases for adjusted approve behavior
b9bd7f4
adjust approve behavior
3222b7b
adjust removing one denom from authorization or deleting altogether a…
5d659d3
adjust increase allowance tests to reflect new behavior
c6f6930
adjust decrease allowance behavior and add corresponding tests
37f932d
add more verbose error message if no allowance exists for token when …
3afb121
Merge branch 'main' into malte/adjust-erc20-authorizations
MalteHerrmann c71686d
address linter
65664af
adjust comment
f3e4348
add changelog entry
bae2651
Update precompiles/erc20/approve.go
MalteHerrmann fde4e11
Merge branch 'main' into malte/adjust-erc20-authorizations
MalteHerrmann bf2fe4d
use SafeSub instead of Sub on sdk integers
91ba8e7
Merge branch 'main' into malte/adjust-erc20-authorizations
Vvaradinov bd85369
remove encapsuled if from switch statement
e7682aa
simplify updating the authorization spend limit
37f2228
refactor into
8000
updateOrAddCoin function
7aaf3cc
check for overflow when increasing allowance
7a8b208
check for overflow during approval
fa0f786
use Sign instead of comparing to Big0
95610e0
add note to SafeSub check
58dbdf2
add test cases for missing allowance for token coverage
df406fd
Merge branch 'main' into malte/adjust-erc20-authorizations
MalteHerrmann e2b46d1
move updateOrAddCoin to types
1855268
Merge branch 'main' into malte/adjust-erc20-authorizations
MalteHerrmann 103107b
run make format
MalteHerrmann File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.