modify comment
This commit is contained in:
@@ -82,6 +82,7 @@ contract CAFunding is CAStorage {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// in case something wrong with base token contract
|
||||||
function emergencySettle() external phaseSettlement preventReentrant {
|
function emergencySettle() external phaseSettlement preventReentrant {
|
||||||
require(!_SETTLED_, "ALREADY_SETTLED");
|
require(!_SETTLED_, "ALREADY_SETTLED");
|
||||||
require(
|
require(
|
||||||
|
|||||||
@@ -123,7 +123,7 @@ library DODOMath {
|
|||||||
if (k == DecimalMath.ONE) {
|
if (k == DecimalMath.ONE) {
|
||||||
// if k==1
|
// if k==1
|
||||||
// Q2=Q1/(1+ideltaBQ1/Q0/Q0)
|
// Q2=Q1/(1+ideltaBQ1/Q0/Q0)
|
||||||
// temp = (1+ideltaBQ1/Q0/Q0)
|
// temp = ideltaBQ1/Q0/Q0
|
||||||
// Q1-Q2 = Q1*(temp/(1+temp))
|
// Q1-Q2 = Q1*(temp/(1+temp))
|
||||||
uint256 temp = i.mul(delta).mul(V1).div(V0.mul(V0));
|
uint256 temp = i.mul(delta).mul(V1).div(V0.mul(V0));
|
||||||
return V1.mul(temp).div(temp.add(DecimalMath.ONE));
|
return V1.mul(temp).div(temp.add(DecimalMath.ONE));
|
||||||
|
|||||||
Reference in New Issue
Block a user