From 8a8bbe96499cbc17548ed2ca2a71fa3fa9246a97 Mon Sep 17 00:00:00 2001 From: Thrilok Kumar Date: Sat, 9 May 2020 01:19:09 +0530 Subject: [PATCH] Added payable to curve connector --- contracts/connectors/curve.sol | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contracts/connectors/curve.sol b/contracts/connectors/curve.sol index c55b41f..ac510cb 100644 --- a/contracts/connectors/curve.sol +++ b/contracts/connectors/curve.sol @@ -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);