Comments (3)
nice work!
from yearn-finance-v3.
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.
Tested locally with an address which owns ~400mil cUSDC priced at ~$0.022636 each, which totaled ~$9mil. LGTM.
from yearn-finance-v3.
Related Issues (20)
- fix: settings UI
- feat: vaults breadcrumb to link to vaults page
- fix: vault details icons HOT 1
- fix: tx modal token name convention HOT 2
- feat: toggle switch for 0 APY HOT 5
- fix: breadcrumb title
- fix: error messaging
- fix: search error formatting HOT 1
- having problems with dev environment setup HOT 4
- Error: space needed HOT 1
- fix: susd modal not displaying HOT 2
- style: Modal zap breaking on Iphone SE
- fix: %0 apy filter HOT 1
- Navigation: Add logo to top navbar as a prop
- MetaMask detection fails in Firefox HOT 3
- Blank fields should be hidden or have placeholder values. HOT 1
- Panels don't take up the whole parent width HOT 1
- Prol
- Gray Finance
- 0xd1669ac6044269b59fa12c5822439f609ca54f41
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from yearn-finance-v3.