-
Notifications
You must be signed in to change notification settings - Fork 205
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
CIP 55: Remove Tobin Tax #2029
CIP 55: Remove Tobin Tax #2029
Conversation
Coverage from tests in coverage: 49.9% of statements across all listed packagescoverage: 63.0% of statements in consensus/istanbul coverage: 40.1% of statements in consensus/istanbul/announce coverage: 54.5% of statements in consensus/istanbul/backend coverage: 0.0% of statements in consensus/istanbul/backend/backendtest coverage: 24.3% of statements in consensus/istanbul/backend/internal/replica coverage: 65.7% of statements in consensus/istanbul/core coverage: 45.0% of statements in consensus/istanbul/db coverage: 0.0% of statements in consensus/istanbul/proxy coverage: 64.4% of statements in consensus/istanbul/uptime coverage: 51.8% of statements in consensus/istanbul/validator coverage: 79.2% of statements in consensus/istanbul/validator/randomCommentID: 81142c405e |
Coverage from tests in coverage: 48.2% of statements across all listed packagescoverage: 60.0% of statements in consensus/istanbul coverage: 40.1% of statements in consensus/istanbul/announce coverage: 54.5% of statements in consensus/istanbul/backend coverage: 0.0% of statements in consensus/istanbul/backend/backendtest coverage: 24.3% of statements in consensus/istanbul/backend/internal/replica coverage: 59.8% of statements in consensus/istanbul/core coverage: 45.0% of statements in consensus/istanbul/db coverage: 0.0% of statements in consensus/istanbul/proxy coverage: 65.0% of statements in consensus/istanbul/uptime coverage: 51.8% of statements in consensus/istanbul/validator coverage: 79.2% of statements in consensus/istanbul/validator/random |
e3081f7
to
57537bc
Compare
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## master #2029 +/- ##
==========================================
+ Coverage 54.30% 55.35% +1.05%
==========================================
Files 692 674 -18
Lines 115642 113454 -2188
==========================================
+ Hits 62795 62808 +13
+ Misses 49014 46835 -2179
+ Partials 3833 3811 -22
☔ View full report in Codecov by Sentry. |
57537bc
to
2cedb9d
Compare
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.
LG! Can you add a second test case, i.e. (TestTransferCELOPreG
, TestTransferCELOPostG
) which transfer before/after the G hardfork and checks expected behavior? I think it'd be really useful to codify your testing (from the description) & have this going forwards to make sure we don't inadvertently mess with the old logic in the future. Wdyt? Happy to approve after that!
As far as your question/comment, I think maybe slightly preferable to move the debug setting to the top of the func (for easier modification later when redoing all the SharedEVMRunner trace fixes) but I think totally up to you!
I agree it would be super useful, but the only way I see to do it involves a full e2e test at the moment, because we don't have the necessary setup logic for units/integration tests to setup the whole celo contract infrastructure. And even the e2e setup is quite involved as it requires the reserve to be setup in a way to trigger the tobin tax payment, besides the whole governance setup. |
471388b
to
a3358e8
Compare
6000f6e
to
b924af7
Compare
b924af7
to
d1912c1
Compare
7d2e4d8
to
d1912c1
Compare
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.
Looks straightforward enough.
Description
Remove tobin tax deduction with next hardfork.
Tested
I tested this manually by running the
TestTransferCELO
test first without changes. This showed deduction of tobin tax. Then I changed the hardfork flag to always return true and made sure that the tobin tax deduction code is not run anymore.Related issues
Backwards compatibility
Changes consensus rules and will therefor be enabled with the next hardfork.