Old Contracts

V3

Mainnet V3:
CONTRACT
STRATEGY
ABI
ADDRESS
IdleDAI
Best Yield
​JSON​
IdleUSDC
Best Yield
​JSON​
IdleUSDT
Best Yield
​JSON​
IdleSUSD
Best Yield
​JSON​
IdleTUSD
Best Yield
​JSON​
IdleWBTC
Best Yield
​JSON​
IdleDAI
Risk Adjusted
​JSON​
IdleUSDC
Risk Adjusted
​JSON​
IdleUSDT
Risk Adjusted
​JSON​
Kovan V3:
*(rebalance not triggered, allocations are fixed on Compound)
CONTRACT
Strategy
ABI
ADDRESS
IdleDAI
Best Yield
​JSON​
IdleTokenV3 Interface
The following one is the interface for the IdleTokenV3 contract. Note that IdleTokens are ERC20 so they will also support methods from the ERC20 standard like approve , transfer, balanceOf
1
interface IIdleToken {
2
function token() external returns (address underlying);
3
function userAvgPrices(address) external returns (uint256 avgPrice);
4
function mintIdleToken(uint256 _amount, bool _skipWholeRebalance) external returns (uint256 mintedTokens);
5
function redeemIdleToken(uint256 _amount, bool _skipRebalance, uint256[] calldata _clientProtocolAmounts) external returns (uint256 redeemedTokens);
6
function redeemInterestBearingTokens(uint256 _amount) external;
7
function rebalance() external returns (bool);
8
function rebalanceWithGST() external returns (bool);
9
function openRebalance(uint256[] calldata _newAllocations) external returns (bool, uint256 avgApr);
10
function tokenPrice() external view returns (uint256 price);
11
function getAPRs() external view returns (address[] memory addresses, uint256[] memory aprs);
12
function getAvgAPR() external view returns (uint256 avgApr);
13
function getCurrentAllocations() external view returns (address[] memory tokenAddresses, uint256[] memory amounts, uint256 total);
14
​
15
// Old V2 methods
16
function mintIdleToken(uint256 _amount, uint256[] calldata _clientProtocolAmounts) external returns (uint256 mintedTokens);
17
function rebalance(uint256 _newAmount, uint256[] calldata _clientProtocolAmounts) external returns (bool);
18
}
Copied!
​

V2

Mainnet V2:
CONTRACT
ABI
ADDRESS
IdleDAI
​JSON​
IdleUSDC
​JSON​
​

V1

Mainnet V1:
CONTRACT
ABI
ADDRESS
IdleSAI
​JSON​
Last modified 1yr ago
Copy link
Contents
V3
V2
V1