update v2.0 event

This commit is contained in:
owen05
2020-12-18 15:42:16 +08:00
parent 0c77f9c9fe
commit 90a16e3bd4
7 changed files with 32 additions and 21 deletions

View File

@@ -34,6 +34,8 @@ contract DPPTrader is DPPVault {
uint256 quoteAmount
);
event RChange(PMMPricing.RState newRState);
// ============ Modifiers ============
modifier isBuyAllow(address trader) {
@@ -77,6 +79,7 @@ contract DPPTrader is DPPVault {
if (_RState_ != newRState) {
_RState_ = newRState;
_BASE_TARGET_ = newBaseTarget;
emit RChange(newRState);
}
emit DODOSwap(
@@ -113,6 +116,7 @@ contract DPPTrader is DPPVault {
if (_RState_ != newRState) {
_RState_ = newRState;
_QUOTE_TARGET_ = newQuoteTarget;
emit RChange(newRState);
}
emit DODOSwap(
@@ -161,6 +165,7 @@ contract DPPTrader is DPPVault {
if (_RState_ != newRState) {
_RState_ = newRState;
_QUOTE_TARGET_ = newQuoteTarget;
emit RChange(newRState);
}
emit DODOSwap(
address(_QUOTE_TOKEN_),
@@ -187,6 +192,7 @@ contract DPPTrader is DPPVault {
if (_RState_ != newRState) {
_RState_ = newRState;
_BASE_TARGET_ = newBaseTarget;
emit RChange(newRState);
}
emit DODOSwap(
address(_BASE_TOKEN_),