Amun contest - gzeon's results

We build tokens to make it easy to invest in crypto.

General Information

Platform: Code4rena

Start Date: 13/12/2021

Pot Size: $75,000 USDC

Total HM: 11

Participants: 30

Period: 7 days

Judge: leastwood

Total Solo HM: 4

Id: 68

League: ETH

Amun

Findings Distribution

Researcher Performance

Rank: 18/30

Findings: 3

Award: $655.59

🌟 Selected for report: 0

🚀 Solo Findings: 0

Findings Information

🌟 Selected for report: Czar102

Also found by: WatchPug, gpersoon, gzeon, kenzo

Labels

bug
duplicate
2 (Med Risk)

Awards

394.2378 USDC - $394.24

External Links

Handle

gzeon

Vulnerability details

Impact

Pool cap is checked in L154 https://github.com/code-423n4/2021-12-amun/blob/98f6e2ff91f5fcebc0489f5871183566feaec307/contracts/basket/contracts/facets/Basket/BasketFacet.sol#L154

require( totalSupply.add(_amount) <= this.getCap(), "MAX_POOL_CAP_REACHED" );

but since we mint _amount to the user and some % of feeAmount to Beneficiary, totalSupply can actually go above the defined cap.

require( totalSupply.add(_amount).add(feeAmount.mul(bs.entryFeeBeneficiaryShare).div(10**18)) <= this.getCap(), "MAX_POOL_CAP_REACHED" );

#0 - loki-sama

2021-12-22T12:03:42Z

Duplicate #283

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