Backd contest - simon135's results

Maximize the power of your assets and start earning yield

General Information

Platform: Code4rena

Start Date: 21/04/2022

Pot Size: $100,000 USDC

Total HM: 18

Participants: 60

Period: 7 days

Judge: gzeon

Total Solo HM: 10

Id: 112

League: ETH

Backd

Findings Distribution

Researcher Performance

Rank: 39/60

Findings: 2

Award: $244.27

🌟 Selected for report: 0

šŸš€ Solo Findings: 0

Awards

159.3125 USDC - $159.31

Labels

bug
QA (Quality Assurance)
resolved
reviewed

External Links

no check for 0 address https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/vault/Vault.sol prepareTargetAllocation executeReserveFee executeBound withdrawFromStrategyWaitingForRemoval _rebalance changeConvexPool func https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/strategies/BkdTriHopCvx.sol https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/pool/LiquidityPool.sol handleLpTokenTransfer https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/actions/topup/TopUpAction.sol lockfunds func calcExchangeAmount func,register,resetPosition getEthRequiredForGas getPosition _payFees https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/actions/topup/TopUpAction.sol lockFunds changeConvexPool :return not explained in notspec addUsableToken getTopUpHandler _approve https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/pool/LiquidityPool.sol handleLpTokenTransfer —------------------- withdrawAll https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/pool/LiquidityPool.sol https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/StakerVault.sol addStrategy Transfer increaseActionLockedBalance transferFrom unstakeFor

https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/AddressProvider.sol Initialize addFeeHandler removeFeeHandler addAction addPool https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/actions/topup/handlers/CompoundHandler.sol topUp

https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/GasBank.sol depositFor

checks and effects pattern protect against reentry attack amountleft-='depostiamount should be done before just in case. excutelocalvars struct totalTopUpAmount waste of space make a bigger to uint256 muplite mappings to get value https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/actions/topup/TopUpAction.sol —------------- _rebalance https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/vault/Vault.sol bad comment should be put in better place address vault = addressProvider.getStakerVault(position.depositToken); // will revert if vault does not exist no onlygovernace modifer not implumented functions : you can change the fee update and change update fee or slippage which a basic user shouldnt be able to https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/vault/Vault.sol executeDebtLimit prepareTargetAllocation withdrawFromStrategyWaitingForRemoval https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/actions/topup/TopUpAction.sol executeActionFee

executeSwapperSlippage executeEstimatedGasUsage https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/pool/LiquidityPool.sol prepareNewWithdrawalFeeDecreasePeriod executeNewWithdrawalFeeDecreasePeriod executeNewVault —------------ Code not needed https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/vault/Vault.sol _computeNewAllocated

Not needed return 0 and pure why No comments and natspec on https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/actions/topup/TopUpActionFeeHandler.sol function Line:160 to 170 —--------- Comments issue https://github.com/code-423n4/2022-04-backd/blob/main/backd/contracts/actions/topup/handlers/CompoundHandler.sol _getAccountBorrowsAndSupply function Not explaining well and no natspec comments.

Awards

84.957 USDC - $84.96

Labels

bug
G (Gas Optimization)
sponsor disputed
reviewed

External Links

AuditHub

A portfolio for auditors, a security profile for protocols, a hub for web3 security.

Built bymalatrax Ā© 2024

Auditors

Browse

Contests

Browse

Get in touch

ContactTwitter