Hunt prep
Before you test NOYA
What 23 disclosed reports say about NOYA: what was found and paid, what was fixed, and where it may be worth looking next.
- with a public bounty
- 0
- median public bounty
- –
- highest public bounty
- –
Gaps worth testing
Not written yet for this program. The numbers below are up to date.
What was found and what it paid
Public bounties only; many reports disclose without the amount.
| Class | Reports | Paid | Median | Highest | In all |
|---|---|---|---|---|---|
| Business logic lesson | 18 | 0 | – | – | $0 |
| Smart contracts lesson | 2 | 0 | – | – | $0 |
| Access control lesson | 1 | 0 | – | – | $0 |
| Crypto lesson | 1 | 0 | – | – | $0 |
| DoS lesson | 1 | 0 | – | – | $0 |
What was fixed
All reportsThe newest fixes, in our words. A fixed bug is not worth re-reporting, but a sibling feature, an older API version or a regression may be.
-
A Vault can steal all funds from another Vault through the Registry’s flash loan contract due to insufficient access control in Connector.sendTokensToTrustedAddress()
The connector should verify that whoever initiated the flash loan is authorised to make calls into that connector; the project confirmed this was fixed.
Disclosed
-
SiloConnector _getPositionTVL miscalculate the TVL position
The function should convert all three share token balances to underlying token amounts, sum the underlying deposits, and then multiply by the price of the underlying asset.
Disclosed
-
PrismaConnector can mint a position below the desired health factor
Use getCurrentICR with the collateral price from the oracle instead of getNominalICR, and allow repayment even if the collateral ratio is below the minimum.
Disclosed
-
Decreasing a position in PendleConnector will remove it even if there’s still a stake at Penpie
The isMarketEmpty function should also check the connector's balance in the Penpie staking pool for the market.
Disclosed
-
Invalid handling of holding positions in DolomiteConnector::transferBetweenAccounts
The transferBetweenAccounts function should be updated to call registry.updateHoldingPosition for both the source and destination accounts after the transfer, based on their current open markets.
Disclosed
-
Value of asset token can be incorrect when usage of ETH/USD Chainlink oracle is needed
The return value should be further divided by 10^10 when the asset is ETH, the base token is USD, and the oracle is not inverted, so the result is in USD's 8 decimals.
Disclosed
-
Base tokens like USDT, USDC having different decimals on different chains can have their TVL updated incorrectly
The project fixed it in a commit by tracking token decimals across chains and scaling the TVL when the update is received on the base chain.
Disclosed
-
Loss of funds in PendleConnector.depositIntoMarket()
The call to skim() should be removed and the used SY and PT amounts pre-calculated with MarketMathCore.addLiquidity() before calling mint().
Disclosed
-
PendleConnector incorrectly sends the redeemed PT tokens to the market
The burnLP function should pass address(this) as the receiverPt parameter to market.burn.
Disclosed
-
AccountingManager::resetMiddle will not behave as expected
The resetMiddle function should set currentWithdrawGroup.totalCBAmount to zero when resetting the withdrawal queue, and this was fixed in a commit.
Disclosed
-
SNXConnector.sol TVL calculation is incorrect
The collateral part should use only totalDeposited, and the debt should be subtracted, though the author notes no clean view function exists for the debt.
Disclosed
-
Registry.sol#updateHoldingPosition remove position logic is incorrect: should use ownerConnector instead of calculatorConnector when calculating holdingPositionId
The code was fixed to use ownerConnector instead of calculatorConnector when calculating the holdingPositionId.
Disclosed
-
BalancerConnector::_getPositionTVL is calculated incorrectly
The fix is to remove the division by weight and adjust the return value with proper decimal scaling based on the asset used.
Disclosed
-
BalancerConnector has incorrect implementation of totalSupply, positionTVL and total TVL will be invalid
The code should use totalActualSupply() instead of totalSupply() for compatible Balancer pools.
Disclosed
-
It is possible to open insolvent position in Silo connector, due to missing check in borrow function
The borrow function should perform the same SolvencyV2 health-factor check as repay and revert if the position is insolvent.
Disclosed