update v2.0 event
This commit is contained in:
@@ -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_),
|
||||
|
||||
Reference in New Issue
Block a user