yearn.finance
Search…
Admin Access Policy
These docs are still being worked on.

v2 Yield Tokens

Contract
ABI
Address
yDAIv2
JSON
yUSDCv2
JSON
yUSDTv2
JSON
yTUSDv2
JSON

yDAIv2

None ✅

yUSDCv2

None ✅

yUSDTv2

    set_new_APR ✅
1
No interaction with funds.
2
3
APR used for stateless recommend() function. Can be used to change the recommended provider. The owner could replace the existing contract to a controlled contract that could suggest a specific lending provider.
Copied!
    set_new_COMPOUND ⚠️
1
Could access funds via malicious lending contract.
2
3
Sets the downstream address for Compound. The owner could replicate the compound mint() function call and force the APR change (with the vector mentioned in set_new_APR) and withdraw funds.
4
5
This method is implemented to allow adding Compound if they support the underlying token.
Copied!
    set_new_DTOKEN ✅
1
No interaction with funds.
2
3
Can only update the ID at dydx, no way to influence any other action.
4
5
This method is implemented to allow adding dYdX if they support the underlying token.
Copied!
    set_new_FULCRUM ⚠️
1
As per set_new_COMPOUND
Copied!

yTUSDv2

    set_new_APR ✅
    set_new_COMPOUND ⚠️
    set_new_DTOKEN ✅

Utility Contracts

Contract
ABI
Address
APROracle
JSON
UniswapROI
JSON
UniswapAPR
JSON
APRWithPoolOracle
JSON
IEarnAPRWithPool
JSON

IEarnAPRWithPool

1
No interaction with funds.
2
3
APR used for stateless recommend() function. Can be used to change the recommended provider. The owner could influence the calculation to a specific lending provider.
Copied!
    addAToken ✅
    addAUniToken ✅
    addCToken ✅
    addDToken ✅
    addIToken ✅
    addPool ✅
    addYToken ✅
    set_new_APR ✅
    set_new_UNI ✅
    set_new_UNIAPR ✅
    set_new_UNIROI ✅

APRWithPoolOracle

1
No interaction with funds.
2
3
APR used for stateless recommend() function. Can be used to change the recommended provider. The owner could influence the calculation to a specific lending provider.
Copied!
    set_new_AAVE ✅
    set_new_DDEX ✅
    set_new_DYDX ✅
    set_new_Modifier ✅
    set_new_Ratio ✅
    set_new_blocksPerYear ✅

UniswapROI

None ✅

UniswapAPR

1
No interaction with funds.
Copied!
    set_new_blocksPerYear ✅

Lending Providers

Last modified 7mo ago