Closed sherlock-admin4 closed 4 months ago
doc says EETH is rebase token. we assume share price of EETH is 1 in units of ETH in the same way as stETHAdapater.
https://etherfi.gitbook.io/etherfi/ether.fi-whitepaper/technical-documentation#eeth
2 comment(s) were left on this issue during the judging contest.
z3s commented:
Invalid; No clear impact mentioned
PNS commented:
The eETH token represents a claim on the same amount of ETH (eETH docs)
yamato
medium
EETHAdapter
wrongfully valuatesEETH : ETH
at 1:1 rateSummary
Contract wrongfully assumes EETH has same value as ETH
Vulnerability Detail
This is the
totalAssets
function within the EETHAdapter, which is responsible to calculate the total value in the contract (denominated in ETH)As it can be seen it valuates
EETH
at 1:1 rate.At the time of this report,
EETH
equals to 1.03851 ETH.The difference is not insignificant and should be considered. The share rate can be fetched directly from the etherfi
LIQUIDITY_POOL
contractImpact
Wrong accounting
Code Snippet
https://github.com/sherlock-audit/2024-05-napier-update/blob/main/napier-v1/src/adapters/etherfi/EETHAdapter.sol#L129
Tool used
Manual Review
Recommendation
fix accounting