You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IERC20Upgradeable(collateralAddress) doesn't revert on 0 transfer
Attack Path
No response
Impact
the address to gets free IBoostStablecoin tokens.
PoC
No response
Mitigation
consider using a custom function to convert the amount between the tokens
The text was updated successfully, but these errors were encountered:
sherlock-admin2
changed the title
Loud Beige Starfish - rounding down can cause address to to get free IBoostStablecoin tokens.
FonDevs - rounding down can cause address to to get free IBoostStablecoin tokens.
Oct 30, 2024
FonDevs
High
rounding down can cause
address to
to get freeIBoostStablecoin
tokens.Summary
if 10 ** (boostDecimals - collateralDecimals) > amount the
address to
getsIBoostStablecoin
without any collateralhttps://github.com/sherlock-audit/2024-10-axion/blob/main/liquidity-amo/contracts/Minter.sol#L77C5-L85C6
Root Cause
there is no check if 10 ** (boostDecimals - collateralDecimals) > amount
Internal pre-conditions
No response
External pre-conditions
Attack Path
No response
Impact
the
address to
gets freeIBoostStablecoin
tokens.PoC
No response
Mitigation
consider using a custom function to convert the amount between the tokens
The text was updated successfully, but these errors were encountered: