Skip to content
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

Round up depositor fee calculation #398

Merged
merged 1 commit into from
May 7, 2024
Merged

Conversation

nkuba
Copy link
Member

@nkuba nkuba commented May 7, 2024

Due to the incorrect rounding, unless the bridged amount is a multiple of the depositorFeeDivisor, a loss of 1 wei of fees will occur on every bridging attempt. Additionally, depositorFeeDivisor - 1 tokens can be bridged without any fees.

To avoid that we round up the calculation.

Due to the incorrect rounding, unless the bridged amount is a multiple of the
depositorFeeDivisor, a loss of 1 wei of fees will occur on every bridging attempt.
Additionally, depositorFeeDivisor - 1 tokens can be bridged without any fees.

To avoid that we round up the calculation.
@nkuba nkuba requested a review from dimpar May 7, 2024 07:53
@nkuba nkuba added the 🔗 Solidity Solidity contracts label May 7, 2024
Copy link

netlify bot commented May 7, 2024

Deploy Preview for acre-dapp-testnet canceled.

Name Link
🔨 Latest commit c2308c2
🔍 Latest deploy log https://app.netlify.com/sites/acre-dapp-testnet/deploys/6639de1079400d000888f9e2

@dimpar dimpar merged commit 216ef05 into main May 7, 2024
25 checks passed
@dimpar dimpar deleted the bitcoin-depositor-deposit-fee branch May 7, 2024 08:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔗 Solidity Solidity contracts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants