add weth 2 eth support in crowdpooling
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
|
||||
|
||||
Copyright 2020 DODO ZOO.
|
||||
SPDX-License-Identifier: Apache-2.0
|
||||
|
||||
@@ -43,6 +43,15 @@ contract DODOCalleeHelper is ReentrancyGuard {
|
||||
_withdraw(assetTo, _quoteToken, quoteAmount, _quoteToken == _WETH_);
|
||||
}
|
||||
|
||||
function CPCancelCall(
|
||||
address payable assetTo,
|
||||
uint256 amount,
|
||||
bytes calldata
|
||||
)external preventReentrant{
|
||||
address _quoteToken = IDODOV2(msg.sender)._QUOTE_TOKEN_();
|
||||
_withdraw(assetTo, _quoteToken, amount, _quoteToken == _WETH_);
|
||||
}
|
||||
|
||||
function _withdraw(
|
||||
address payable to,
|
||||
address token,
|
||||
|
||||
Reference in New Issue
Block a user