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.

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.