Dopex - sh1v's results

A rebate system for option writers in the Dopex Protocol.

General Information

Platform: Code4rena

Start Date: 21/08/2023

Pot Size: $125,000 USDC

Total HM: 26

Participants: 189

Period: 16 days

Judge: GalloDaSballo

Total Solo HM: 3

Id: 278

League: ETH

Dopex

Findings Distribution

Researcher Performance

Rank: 189/189

Findings: 1

Award: $0.00

🌟 Selected for report: 0

🚀 Solo Findings: 0

Lines of code

https://github.com/code-423n4/2023-08-dopex/blob/eb4d4a201b3a75dd4bddc74a34e9c42c71d0d12f/contracts/perp-vault/PerpetualAtlanticVaultLP.sol#L199-L205

Vulnerability details

Impact

If this equality condition is intentionally disrupted, it will result in the failure of all settlement processes carried out using the settle function.

Proof of Concept

Tools Used

Manual review

-      collateral.balanceOf(address(this)) == _totalCollateral - loss,
+      collateral.balanceOf(address(this)) >= _totalCollateral - loss,

Assessed type

Invalid Validation

#0 - c4-pre-sort

2023-09-09T09:55:27Z

bytes032 marked the issue as duplicate of #619

#1 - c4-pre-sort

2023-09-11T16:14:27Z

bytes032 marked the issue as sufficient quality report

#2 - c4-judge

2023-10-20T19:26:55Z

GalloDaSballo marked the issue as nullified

#3 - c4-judge

2023-10-20T19:27:43Z

GalloDaSballo marked the issue as partial-25

#4 - GalloDaSballo

2023-10-20T19:27:49Z

I think you could have spent the 10 seconds to write about how

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