Closed sherlock-admin closed 10 months ago
1 comment(s) were left on this issue during the judging contest.
auditsea commented:
Based on how many tokens are minted and borrowed, the poolCeiling can be controlled by admin
1 comment(s) were left on this issue during the judging contest.
auditsea commented:
Based on how many tokens are minted and borrowed, the poolCeiling can be controlled by admin
Drynooo
medium
There may be room for arbitrage beyond poolCeiling
Summary
When minting coins, there is room for arbitrage due to the price difference with the market. And because AMO can lend collateral, the arbitrage space can exceed the limit of poolCeiling.
Vulnerability Detail
Pool ceiling will be affected by current balance
freeCollateralBalance
mint at price 1
When AMO returns the collateral, the amount of collateral in the contract may exceed the Pool ceiling.
Impact
This creates a larger arbitrage space, and users can profit from arbitrage. Moreover, it also affects the issuance quantity of USD to a certain extent.
Code Snippet
Tool used
Manual Review
Recommendation
It is recommended to record the amount borrowed by AMO and take it into consideration when verifying the Pool ceiling.
Duplicate of #174