Added payable to curve connector

This commit is contained in:
Thrilok Kumar 2020-05-09 01:19:09 +05:30
parent c3078cafd5
commit 8a8bbe9649

View File

@ -103,7 +103,7 @@ contract CurveProtocol is CurveHelpers {
uint unitAmt,
uint getId,
uint setId
) external {
) external payable {
uint _sellAmt = getUint(getId, sellAmt);
ICurve curve = ICurve(getCurveSwapAddr());
TokenInterface _buyToken = TokenInterface(buyAddr);
@ -140,7 +140,7 @@ contract CurveProtocol is CurveHelpers {
uint unitAmt,
uint getId,
uint setId
) external {
) external payable {
uint256 _amt = getUint(getId, amt);
TokenInterface tokenContract = TokenInterface(token);
@ -184,7 +184,7 @@ contract CurveProtocol is CurveHelpers {
uint256 unitAmt,
uint getId,
uint setId
) external {
) external payable {
uint _amt = getUint(getId, amt);
int128 tokenId = getTokenI(token);