modify comment

This commit is contained in:
mingda
2020-12-09 19:21:20 +08:00
parent 26b5cf2971
commit ff1e6d38db
2 changed files with 2 additions and 1 deletions

View File

@@ -82,6 +82,7 @@ contract CAFunding is CAStorage {
}
}
// in case something wrong with base token contract
function emergencySettle() external phaseSettlement preventReentrant {
require(!_SETTLED_, "ALREADY_SETTLED");
require(

View File

@@ -123,7 +123,7 @@ library DODOMath {
if (k == DecimalMath.ONE) {
// if k==1
// Q2=Q1/(1+ideltaBQ1/Q0/Q0)
// temp = (1+ideltaBQ1/Q0/Q0)
// temp = ideltaBQ1/Q0/Q0
// Q1-Q2 = Q1*(temp/(1+temp))
uint256 temp = i.mul(delta).mul(V1).div(V0.mul(V0));
return V1.mul(temp).div(temp.add(DecimalMath.ONE));