mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
one small bug resolved
This commit is contained in:
parent
34cf40cb10
commit
8cd37901b9
|
@ -498,13 +498,11 @@ contract CompMcdResolver is McdResolver {
|
||||||
) internal
|
) internal
|
||||||
{
|
{
|
||||||
address payable scdMcdMigration = InstaMcdAddress(getMcdAddresses()).migration();
|
address payable scdMcdMigration = InstaMcdAddress(getMcdAddresses()).migration();
|
||||||
TokenInterface sai = TokenInterface(getSaiAddress());
|
|
||||||
TokenInterface dai = TokenInterface(getDaiAddress());
|
TokenInterface dai = TokenInterface(getDaiAddress());
|
||||||
if (dai.allowance(address(this), scdMcdMigration) < wad) {
|
if (dai.allowance(address(this), scdMcdMigration) < wad) {
|
||||||
dai.approve(scdMcdMigration, wad);
|
dai.approve(scdMcdMigration, wad);
|
||||||
}
|
}
|
||||||
ScdMcdMigration(scdMcdMigration).swapDaiToSai(wad);
|
ScdMcdMigration(scdMcdMigration).swapDaiToSai(wad);
|
||||||
sai.transfer(getPoolAddress(), wad);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function paybackAndRedeem(uint ethAmt, uint saiAmt, bool isCompound) internal {
|
function paybackAndRedeem(uint ethAmt, uint saiAmt, bool isCompound) internal {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user