mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
fixed mkr bug
This commit is contained in:
parent
65641f2c37
commit
0daea98793
|
@ -188,7 +188,7 @@ contract Helpers is DSMath {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @dev get Compound WETH Address
|
* @dev get WETH Address
|
||||||
*/
|
*/
|
||||||
function getWETHAddress() public pure returns (address wethAddr) {
|
function getWETHAddress() public pure returns (address wethAddr) {
|
||||||
wethAddr = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; // main
|
wethAddr = 0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2; // main
|
||||||
|
@ -441,7 +441,7 @@ contract MCDResolver is SCDResolver {
|
||||||
// Calculate necessary value of MKR to pay the govFee
|
// Calculate necessary value of MKR to pay the govFee
|
||||||
uint govFee = wdiv(tub.rap(cup), uint(val));
|
uint govFee = wdiv(tub.rap(cup), uint(val));
|
||||||
if (govFee > 0) {
|
if (govFee > 0) {
|
||||||
if (payGem != address(0)) {
|
if (payGem != address(tub.gov())) {
|
||||||
swapToMkr(payGem, govFee);
|
swapToMkr(payGem, govFee);
|
||||||
require(tub.gov().transfer(address(scdMcdMigration), govFee), "transfer-failed");
|
require(tub.gov().transfer(address(scdMcdMigration), govFee), "transfer-failed");
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user