mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
changed liquidity address
This commit is contained in:
parent
822db2ae1e
commit
fa708863f6
|
@ -6,42 +6,27 @@ interface ERC20Interface {
|
||||||
function approve(address, uint) external;
|
function approve(address, uint) external;
|
||||||
function transfer(address, uint) external returns (bool);
|
function transfer(address, uint) external returns (bool);
|
||||||
function transferFrom(address, address, uint) external returns (bool);
|
function transferFrom(address, address, uint) external returns (bool);
|
||||||
function deposit() external payable;
|
|
||||||
function withdraw(uint) external;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface CTokenInterface {
|
interface CTokenInterface {
|
||||||
function mint(uint mintAmount) external returns (uint); // For ERC20
|
function mint(uint mintAmount) external returns (uint); // For ERC20
|
||||||
function redeem(uint redeemTokens) external returns (uint);
|
function redeem(uint redeemTokens) external returns (uint);
|
||||||
function redeemUnderlying(uint redeemAmount) external returns (uint);
|
|
||||||
function borrow(uint borrowAmount) external returns (uint);
|
function borrow(uint borrowAmount) external returns (uint);
|
||||||
function exchangeRateCurrent() external returns (uint);
|
function exchangeRateCurrent() external returns (uint);
|
||||||
function transfer(address, uint) external returns (bool);
|
function transfer(address, uint) external returns (bool);
|
||||||
function transferFrom(address, address, uint) external returns (bool);
|
function transferFrom(address, address, uint) external returns (bool);
|
||||||
function balanceOf(address) external view returns (uint);
|
function balanceOf(address) external view returns (uint);
|
||||||
function repayBorrow(uint repayAmount) external returns (uint); // For ERC20
|
|
||||||
function borrowBalanceCurrent(address account) external returns (uint);
|
|
||||||
function underlying() external view returns (address);
|
function underlying() external view returns (address);
|
||||||
}
|
}
|
||||||
|
|
||||||
interface CETHInterface {
|
interface CETHInterface {
|
||||||
function exchangeRateCurrent() external returns (uint);
|
function exchangeRateCurrent() external returns (uint);
|
||||||
function mint() external payable; // For ETH
|
function mint() external payable; // For ETH
|
||||||
function repayBorrow() external payable; // For ETH
|
|
||||||
function transfer(address, uint) external returns (bool);
|
function transfer(address, uint) external returns (bool);
|
||||||
function borrowBalanceCurrent(address account) external returns (uint);
|
|
||||||
function balanceOf(address) external view returns (uint);
|
function balanceOf(address) external view returns (uint);
|
||||||
}
|
}
|
||||||
|
|
||||||
interface ComptrollerInterface {
|
|
||||||
function enterMarkets(address[] calldata cTokens) external returns (uint[] memory);
|
|
||||||
function exitMarket(address cTokenAddress) external returns (uint);
|
|
||||||
function getAssetsIn(address account) external view returns (address[] memory);
|
|
||||||
function getAccountLiquidity(address account) external view returns (uint, uint, uint);
|
|
||||||
}
|
|
||||||
|
|
||||||
interface LiquidityInterface {
|
interface LiquidityInterface {
|
||||||
function deposits(address userWallet, address ctkn) external view returns(uint ctknAmt);
|
|
||||||
function depositCTkn(address ctknAddr, uint amt) external;
|
function depositCTkn(address ctknAddr, uint amt) external;
|
||||||
function withdrawCTkn(address ctknAddr, uint amt) external returns(uint ctknAmt);
|
function withdrawCTkn(address ctknAddr, uint amt) external returns(uint ctknAmt);
|
||||||
}
|
}
|
||||||
|
@ -93,7 +78,7 @@ contract Helper is DSMath {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getLiquidityAddr() public pure returns (address liquidity) {
|
function getLiquidityAddr() public pure returns (address liquidity) {
|
||||||
// liquidity = ;
|
liquidity = 0x7281Db02c62e2966d5Cd20504B7C4C6eF4bD48E1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -193,3 +178,10 @@ contract ProvideLiquidity is Helper {
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
contract InstaLiquidity is ProvideLiquidity {
|
||||||
|
|
||||||
|
function() external payable {}
|
||||||
|
|
||||||
|
}
|
|
@ -179,7 +179,7 @@ contract Helper is DSMath {
|
||||||
* @dev get InstaDApp Liquidity contract
|
* @dev get InstaDApp Liquidity contract
|
||||||
*/
|
*/
|
||||||
function getLiquidityAddr() public pure returns (address liquidity) {
|
function getLiquidityAddr() public pure returns (address liquidity) {
|
||||||
// liquidity = 0x22BE7F22E7ca2D4949d2B369d02bC9283CE7d285;
|
liquidity = 0x7281Db02c62e2966d5Cd20504B7C4C6eF4bD48E1;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user