mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
fixed liquidity address in compound migrate
This commit is contained in:
parent
227f3e4654
commit
d65da6bec7
|
@ -125,7 +125,7 @@ contract Helpers is DSMath {
|
|||
* @dev get InstaDapp's Pool Address
|
||||
*/
|
||||
function getLiquidityAddress() public pure returns (address poolAddr) {
|
||||
poolAddr = 0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B;
|
||||
poolAddr = 0x1564D040EC290C743F67F5cB11f3C1958B39872A;
|
||||
}
|
||||
|
||||
function enterMarket(address cErc20) internal {
|
||||
|
@ -260,6 +260,8 @@ contract CompMigration is CompoundResolver {
|
|||
uint initialPoolBal = sub(getLiquidityAddress().balance, 10000000000);
|
||||
|
||||
uint saiJoinBal = ERC20Interface(getSaiAddress()).balanceOf(InstaMcdAddress(getMcdAddresses()).saiJoin());
|
||||
|
||||
require(saiJoinBal != 0, "0 SAI bal in migration");
|
||||
// Check SAI balance of migration contract. If less than debtToMigrate then set debtToMigrate = SAI_Bal
|
||||
uint migrateAmt = debtToMigrate < saiJoinBal ? debtToMigrate : sub(saiJoinBal, 10000);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user