GithubHelp home page GithubHelp logo

Comments (3)

FoxTheSin avatar FoxTheSin commented on July 18, 2024 1

nice work!

from yearn-finance-v3.

huggingbot avatar huggingbot commented on July 18, 2024

Hello, just an update on my investigation.

It seems that the price returned from the oracle is incorrect. Still investigating the calculation.

We can verify the price returned by the oracle here.

Under getPriceUsdcRecommended, input the cUSDC address of 0x39AA39c021dfbaE8faC545936693aC917d5E7563. We will get a 7-digit number, beginning with the number 2. Since USDC has a decimal of 6, it's reading the price as $2 instead of the supposedly $0.02.

The oracle queries sub contracts for the price, and in this case, the sub contract is CalculationsIronBank with the address of 0xc31e8c238287448f0d0ccf65df40424eef429940. The price is calculated in this line, which will return the 7-digit number.

from yearn-finance-v3.

huggingbot avatar huggingbot commented on July 18, 2024

Tested locally with an address which owns ~400mil cUSDC priced at ~$0.022636 each, which totaled ~$9mil. LGTM.

cusdc

from yearn-finance-v3.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.