Closed 0xKitsune closed 1 year ago
I think this was a misunderstanding of how the OFT setup works. Related slack messages:
13 (Insufficient handling of OFT leads to underflow of elastic/base) All alt chain OFTs are initialized with 0 supply. Shares are only minted when the corresponding amount is burned on eth mainnet. This means that fraction.base should account for all deposits. Therefore any shares sent back to mainnet for withdrawl have already been accounted for.
Regarding issue 13, is it correct that on alt chains only an OFT is going to deployed and the main contract (MevEth) is only on Mainnet? i.e. depositing/minting would only be done Mainnet?
RE: 13 - Yes, exactly. MevEth is deployed on mainnet only; deposit/mint & withdraw/redeem are mainnet only functions. OFT's are deployed on alt chains, with the same name and linked for bridging via layerzero but act as simple ERC20's limited to transfers only, with initial supply = 0.
Issue 13: I see, that would indeed make the issue invalid, it won't be in the final report.
This has been left out of the final report.
Status
Reported
Type
Vulnerability
Severity
Highest
Code Snippet:
Remediation
Description