BPT donations can be gamed #190
Labels
1 (Low Risk)
Assets are not at risk. State handling, function incorrect as to spec, issues with comments
bug
Something isn't working
duplicate
This issue or pull request already exists
sponsor confirmed
Sponsor agrees this is a problem and intends to fix it (OK to use w/ "disagree with severity")
Handle
cmichel
Vulnerability details
The treasury manager sometimes sends BPT to the sNOTE contract and sNOTE are a claim on the total BPT balance.
From the docs:
These profits can be stolen by frontrunning this
BPT.transfer
with adeposit
, catching the value, initiating astartCoolDown
and then redeeming afterREDEEM_WINDOW_SECONDS
.This captures a share of the BPT donations.
Recommended Mitigation Steps
There are several fixes for this. All the smart contract fixes require quite some effort.
The easiest mitigation is to do the BPT donations only through a private transaction (flashbots / ethermine) so they cannot be frontrun.
The text was updated successfully, but these errors were encountered: