mirror of
https://github.com/Instadapp/smart-contract.git
synced 2024-07-29 22:08:07 +00:00
stack too deep error
This commit is contained in:
parent
ccd4b7745c
commit
99f58db034
|
@ -473,7 +473,8 @@ contract MakerResolver is CompoundHelper {
|
|||
(bytes32 val, bool ok) = tub.pep().peek();
|
||||
|
||||
// MKR required for wipe = Stability fees accrued in Dai / MKRUSD value
|
||||
uint mkrFee = wdiv(rmul(_wad, rdiv(tub.rap(cup), tub.tab(cup))), uint(val));
|
||||
uint mkrFeeHelper = rdiv(tub.rap(cup), tub.tab(cup));
|
||||
uint mkrFee = wdiv(rmul(_wad, mkrFeeHelper), uint(val));
|
||||
|
||||
uint daiFeeAmt = daiEx.getTokenToEthOutputPrice(mkrEx.getEthToTokenOutputPrice(mkrFee));
|
||||
daiAmt = add(_wad, daiFeeAmt);
|
||||
|
|
Loading…
Reference in New Issue
Block a user