Gro Protocol contest - a_delamo's results

The first protocol to balance your exposure, tranche risk and boost yields all at once.

General Information

Platform: Code4rena

Start Date: 01/07/2021

Pot Size: $100,000 USDC

Total HM: 10

Participants: 7

Period: 7 days

Judge: ghoulsol

Total Solo HM: 4

Id: 17

League: ETH

Gro Protocol

Findings Distribution

Researcher Performance

Rank: 6/7

Findings: 3

Award: $1,308.59

🌟 Selected for report: 2

🚀 Solo Findings: 0

Findings Information

🌟 Selected for report: cmichel

Also found by: 0xRajeev, a_delamo

Labels

bug
duplicate
2 (Med Risk)

Awards

1059.4796 USDC - $1,059.48

External Links

Handle

a_delamo

Vulnerability details

Impact

I would recommend using latestRoundData instead of latestAnswer. This way we can run extra validations and makes sure that the data is okay.

( roundId, rawPrice, , updateTime, answeredInRound ) = AggregatorV3Interface(XXXX).latestRoundData(); require(rawPrice > 0, "Chainlink price <= 0"); require(updateTime != 0, "Incomplete round"); require(answeredInRound >= roundId, "Stale price");
// https://docs.chain.link/docs/developer-communications/ A new function latestRoundData has been added. It returns roundId, answer, startedAt, updatedAt, and answeredInRound. This allows consumers of reference data to make decisions around if the data is acceptable in a single function call (ex: if answeredInRound < roundId could indicate stale data).

#0 - flabble-gro

2021-07-14T20:25:09Z

Duplicate of #106

#1 - ghoul-sol

2021-07-26T01:30:11Z

Duplicate of #106 which means it's medium risk.

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