add cp event && smartroute helper fix

This commit is contained in:
owen05
2021-01-18 22:32:12 +08:00
parent 211b5e0172
commit 059778b27b
13 changed files with 201 additions and 88 deletions

View File

@@ -25,6 +25,7 @@ contract CPFunding is CPStorage {
event Bid(address to, uint256 amount, uint256 fee);
event Cancel(address to,uint256 amount);
event Settle();
// ============ BID & CALM PHASE ============
@@ -102,6 +103,8 @@ contract CPFunding is CPStorage {
_TOTAL_LP_AMOUNT_ = IDVM(_POOL_).buyShares(address(this));
msg.sender.transfer(_SETTEL_FUND_);
emit Settle();
}
// in case something wrong with base token contract