Skip to content

Latest commit

 

History

History
32 lines (19 loc) · 1.54 KB

bir-20-micro-bdv.md

File metadata and controls

32 lines (19 loc) · 1.54 KB

BIR-20: Micro BDV Stays with Sender

Proposer

Beanstalk Immunefi Committee

Summary

Reward 3,000 Beans to the whitehat that reported the issue where a micro amount of BDV stays with the sender of a Deposit upon Transfer.

Links

Bug

During a Deposit transfer, a micro amount of BDV stays with the sender due to a rounding error in LibTokenSilo.removeDepositFromAccount().

Fix

Update LibTokenSilo.removeDepositFromAccount() to properly round up the result of integer division when calculating the removed BDV from the sender.

Determination

Given that the micro BDV that stays with the sender is not transferred to the receiver, no additional BDV is issued and no Deposits are put into an incorrect state. Given that the practicable economic damage is effectively zero as a result of the magnitude of the issue, the BIC has determined that this bug report be rewarded 3,000 Beans.

  • Potential practicable economic damage: N/A
  • Impact: Medium — Contract fails to deliver promised returns, but doesn't lose value
  • Entitled to reward: Yes