KVORUM
aaveSource: Aave governor v2 · #160

Update xSushi price feed on Aave V2

executedFeb 24, 2023, 06:02 AM UTCbyF70xf71f…1e02

01Summary

AISummary by Kvorumclaude-haiku-4-5

Replace the custom xSushi price feed on Aave V2 Ethereum with Chainlink's calculated oracle to reduce gas costs, improve technical support, and eliminate on-chain manipulation risks. Historical comparison shows price differences within acceptable 2% deviation.

Type
parameter change

Key changes

  • Replace xSushi price feed from custom oracle (0x9b26214bEC078E68a394AaEbfbffF406Ce14893F) to Chainlink's calculated oracle (0xF05D9B6C08757EAcb1fbec18e36A1B7566a13DEB)(high)
  • Move price calculation from on-chain to off-chain for improved gas efficiency(medium)
  • Eliminate potential on-chain manipulation risks for xSushi pricing(medium)

Notable concerns

  • Historical feed comparison shows 19.49% of results have 1-2% price differences between current and new feed
  • Current custom feed and Chainlink feed both have 2% price deviation
  • xSushi is currently not enabled for borrowing on Aave V2
Contracts0x8798249c2E607446EfB7Ad49eC89dD1865Ff42720xF05D9B6C08757EAcb1fbec18e36A1B7566a13DEB
Generated by Kvorum
model: claude-haiku-4-5
provider: anthropic
profile: anthropic-fast-v1
prompt: v1.0
generated: 2mo ago
Read the description ↗

02Description

230 words

Simple Summary

This proposal changes the current price feed for xSushi (adapter) to a Chainlink calculated oracle, on Aave V2 Ethereum.

Motivation

Currently, a custom price feed is used for xSushi, which calculates the price based on SUSHI / ETH oracle and SUSHI / xSUSHI ratio on-chain. It is more effective in terms of technical support and gas cost to use the feed deployed by Chainlink, which does this calculations off-chain. In addition, any risk of on-chain manipulation, even if not applicable at the moment with the asset not enabled for borrowing, gets removed.

Specification

Upon execution the proposal will:

  • call ORACLE.setAssetSources(0x8798249c2E607446EfB7Ad49eC89dD1865Ff4272, 0xF05D9B6C08757EAcb1fbec18e36A1B7566a13DEB) to replace the price source for xSushi

Security and additional considerations

To have extra assurances on the feed swap, we did the following:

  • Historical Feeds Comparison: Comparing the answers from the current feed with the new one for the last year with a 2-hour step gave the following results:
    • 24.88% of results differ for less than 0.1%
    • 55.63% have between 0.1% and 1% difference
    • 19.49% is between 1% and 2%

Price deviation for both feeds is 2%, which means that the price difference is withing the norm.

References

Contracts

Copyright

Copyright and related rights waived via CC0.

03Mismatch analysis

AIMismatch analysis by Kvorum

A calldata-vs-description analysis is not generated yet. Review the decoded actions →

04Actions

1 total
#0fallback()chain 0x1
Target
0x3105…f211
Value
0 wei
Function
fallback()
Arguments
{}
Calldata

05Tally

Summed from votes

Voters0
VP participating0
Outcome (current)—
Current support—

06Voters

0 total

No votes recorded yet.

07Forum

No forum thread is confidently linked to this proposal.