-
Notifications
You must be signed in to change notification settings - Fork 144
feat: paloma bridge exit tax #1196
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
feat: paloma bridge exit tax #1196
Conversation
dc55880
to
9ec464d
Compare
- On receiving the transfer complete event we burn the total amount of tokens (transferred + taxed) @maharifu to be clear, we're not BURNING THE TOTAL AMOUNT OF TOKENS! RIGHT? RIGHT?!?!? |
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.
Please let us not BURN ALL the tokens!
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.
Good work. Some small remarks.
1b41622
to
927fde9
Compare
The amount transferred out of gravity is the intended amount minus the tax valus as set by governance vote.
CVE-2022-23772 was fixed in go 1.17.7 and backported to 1.16.14. We're using go 1.22, so it doesn't affect us.
The `skip-pkg-cache` and `skip-build-cache` options were removed in v5.
927fde9
to
2cbd798
Compare
Instead of subtracting from amount to transfer, we transfer the full amount and add the tax as a transfer cost to the user.
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 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.
LFG!
Related Github tickets
Background
We're going to charge a tax fee for every transfer out of paloma. The tax rate is defined by governance vote and we can set exceptions to tokens and addresses.
Testing completed
Breaking changes