frxETH
off-peg handling
#223
Labels
2 (Med Risk)
Assets not at direct risk, but function/availability of the protocol could be impacted or leak value
bug
Something isn't working
disagree with severity
Sponsor confirms validity, but disagrees with warden’s risk assessment (sponsor explain in comments)
duplicate
This issue or pull request already exists
frxETH off-peg
in discussion
Discussion about this issue is ongoing, and not yet resolved.
sponsor acknowledged
Technically the issue is correct, but we're not going to resolve it for XYZ reasons
Lines of code
https://github.com/code-423n4/2022-09-frax/blob/55ea6b1ef3857a277e2f47d42029bc0f3d6f9173/src/frxETHMinter.sol#L78
Vulnerability details
Impact
There is no guarantee that the validators will not lose fund. There are multiple pitfalls can result in loss, according to Ethereum document: penalties could come from slashing, inactivity leak, reference. Or even unexpected bugs can cause loss to the validators, such as this news:
Seventy-five Eth2 validators got slashed this week due to a bug witnessed by Staked.
If some validators did incur losses, or lots of the validators suffer loss due to some softwares bugs, the equity of the frxETH holders could be less than what they have deposited. Then the booking value of the frxETH can not support the 1:1 peg, off-peg could be triggered, the consequence might go out of control. Because at the same time, the multisig is still sending staking rewards ETH to the
frxETH
contract to mint with hardcoded 1:1 exchange ratio. For thesfrxETH
holders, what they receive is much over valued. To stop loss, they will tend to exit as soon as possible. If this scenario happens, it is expected to have large scalewithdraw()
of the vault, followed by panic sell off, and eventually even further depreciation of frxETH and market collapse.If the vault was
withdraw()
to empty, the potential issue of ERC4626 vault exchange rate manipulation could also happen, further harm the vault and other users.This issue is deemed as High because once it happens, the impacts might be catastrophic to the protocol.
Proof of Concept
The exchange rate of
frxETH
to ETH is hardcoded. During off-peg period, the incorrect ratio could enhance the market tumble.Tools Used
Manual analysis.
Recommended Mitigation Steps
frxETH
to ETH exchange ratio, and allow for some variation. Then market trades might help to stabilize the price.The text was updated successfully, but these errors were encountered: