Swivel contest - pants's results

The Decentralized Protocol For Fixed-Rate Lending & Tokenized Cash-Flows.

General Information

Platform: Code4rena

Start Date: 30/09/2021

Pot Size: $75,000 ETH

Total HM: 9

Participants: 15

Period: 7 days

Judge: 0xean

Total Solo HM: 2

Id: 39

League: ETH

Swivel

Findings Distribution

Researcher Performance

Rank: 11/15

Findings: 3

Award: $1,619.82

🌟 Selected for report: 1

πŸš€ Solo Findings: 0

Findings Information

🌟 Selected for report: 0xsanson

Also found by: 0xRajeev, GalloDaSballo, JMukesh, cmichel, defsec, leastwood, loop, nikitastupin, pants, pauliax

Labels

bug
duplicate
3 (High Risk)

Awards

0.1048 ETH - $310.65

External Links

Handle

pants

Vulnerability details

Non-standard compliant tokens like USDT don't return a return value on approve(). The function Erc20.approve() reverts if the token doesn't return a return value, as it is defined to always return a boolean.

Impact

When using any non-standard compliant token like USDT, the function will revert unexpectedly.

Tool Used

Manual code review.

Use OpenZeppelin’s SafeERC20.safeApprove() that handles the return value check as well as non-standard compliant tokens.

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