-
Notifications
You must be signed in to change notification settings - Fork 97
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
ibc rate limit module NTRN-393 #706
Conversation
022dbff
to
aa66712
Compare
…bc-rate-limit # Conflicts: # app/app.go
e7e1ead
to
ae40a29
Compare
… versions thows an err
705999b
to
30f6557
Compare
# Conflicts: # app/app.go
dd6110e
to
2ec4d09
Compare
# Conflicts: # app/upgrades/types.go # app/upgrades/v5.0.0/constants.go # app/upgrades/v5.0.0/upgrades.go
suite.RegisterRateLimitingContract(addr) | ||
|
||
// send 2.5% (quota is 5%) | ||
fmt.Printf("Sending %s from A to B. Represented in chain A as wrapped? %v\n", denom, !native) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove printlns, please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
discussed in dms, we decided to do so
|
||
// send 2.5% (quota is 5%) | ||
fmt.Println("trying to send ", sendAmount) | ||
r, _ := suite.AssertSend(true, suite.MessageFromAToB(denom, sendAmount)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
errors are not handles, fix it everywhere, please
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there is no need for that as soon as AssertSend
is designed to handle (or expect) the error. behaviour depends on the first parameter
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
briefly looked at the code, more thoroughly looked at the tests — LGTM
This PR implements a neutron's adaptation of Osmosis' ibc-rate-limit.
It includes:
TASK