add global quota to cp init

This commit is contained in:
tracy
2022-04-21 16:27:46 +08:00
committed by owen05
parent e435578b3f
commit a1a51d9b5a
4 changed files with 34 additions and 4 deletions

View File

@@ -61,7 +61,8 @@ contract DODOCpProxy is ReentrancyGuard {
uint256[] memory timeLine,
uint256[] memory valueList,
bool[] memory switches,
uint256 deadLine
uint256 deadLine,
int globalQuota
) external payable preventReentrant judgeExpired(deadLine) returns (address payable newCrowdPooling) {
address _baseToken = baseToken;
address _quoteToken = quoteToken == _ETH_ADDRESS_ ? _WETH_ : quoteToken;
@@ -89,7 +90,8 @@ contract DODOCpProxy is ReentrancyGuard {
tokens,
timeLine,
valueList,
switches
switches,
globalQuota
);
}