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
User spends more Numa tokens than required to mint an amount of nuAsset tokens
Summary
Higher Price between vault buy price and LP price is Used to Mint nuAsset from Numa, instead of using the lower price.
Root Cause
In NumaPrinter.sol, a wrong calculation is done to get the lowest price between Vault buy price and LP Price, and this results in the higher price used to mint a nuAsset from Numa.
Internal pre-conditions
User needs to call mintAssetOutputFromNuma when vault buy price != LP Price
External pre-conditions
No response
Attack Path
User calls mintAssetOutputFromNuma when vault buy price != LP Price
getNbOfNumaNeededAndFeeis called to fetch the min amount of Numa needed to mint _nuAssetAmount
Higher amount between vault buy price numaAmountVault and LP price numaAmountPrice is returned
Impact
The user spends more numa token than required, to mint the commensurate amount of nuAsset tokens.
Slow Sky Puma
Medium
User spends more Numa tokens than required to mint an amount of nuAsset tokens
Summary
Higher Price between vault buy price and LP price is Used to Mint nuAsset from Numa, instead of using the lower price.
Root Cause
In NumaPrinter.sol, a wrong calculation is done to get the lowest price between Vault buy price and LP Price, and this results in the higher price used to mint a nuAsset from Numa.
Internal pre-conditions
mintAssetOutputFromNuma
whenvault buy price != LP Price
External pre-conditions
No response
Attack Path
mintAssetOutputFromNuma
whenvault buy price != LP Price
getNbOfNumaNeededAndFee
is called to fetch the min amount of Numa needed to mint_nuAssetAmount
numaAmountVault
and LP pricenumaAmountPrice
is returnedImpact
The user spends more numa token than required, to mint the commensurate amount of nuAsset tokens.
PoC
No response
Mitigation
The line
should be changed to
The text was updated successfully, but these errors were encountered: