rename DPP sync to ratioSync

This commit is contained in:
mingda
2020-12-21 23:16:55 +08:00
parent 4d180159ca
commit ad046a7b11
6 changed files with 116 additions and 71 deletions

View File

@@ -38,10 +38,9 @@ contract DPPAdmin is InitializableOwnable {
//For Rebase Token
function sync() external notFreezed onlyOwner {
IDPP(_DPP_).sync();
IDPP(_DPP_).ratioSync();
}
function setFreezeTimestamp(uint256 timestamp) external notFreezed onlyOwner {
_FREEZE_TIMESTAMP_ = timestamp;
}
@@ -111,17 +110,18 @@ contract DPPAdmin is InitializableOwnable {
operator == _OPERATOR_),
"RESET FORBIDDEN"
);
return IDPP(_DPP_).reset(
msg.sender,
newLpFeeRate,
newMtFeeRate,
newI,
newK,
baseOutAmount,
quoteOutAmount,
minBaseReserve,
minQuoteReserve
);
return
IDPP(_DPP_).reset(
msg.sender,
newLpFeeRate,
newMtFeeRate,
newI,
newK,
baseOutAmount,
quoteOutAmount,
minBaseReserve,
minQuoteReserve
);
}
// ============ Admin Version Control ============