From 24a038acedfff108083daa71a9d41da343b2474a Mon Sep 17 00:00:00 2001 From: Edward Mulraney Date: Mon, 26 Jul 2021 08:42:20 -0400 Subject: [PATCH] Allow non payable functions to be composable with payable functions Make all functions payable so they can be composed in a larger spell which might use msg.value (normally non-payable is rejected) Co-authored-by: Samyak Jain <34437877+KaymasJain@users.noreply.github.com> --- contracts/mainnet/connectors/liquity/main.sol | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contracts/mainnet/connectors/liquity/main.sol b/contracts/mainnet/connectors/liquity/main.sol index 01d46958..51761b4c 100644 --- a/contracts/mainnet/connectors/liquity/main.sol +++ b/contracts/mainnet/connectors/liquity/main.sol @@ -381,7 +381,7 @@ abstract contract LiquityResolver is Events, Helpers { uint setStakeId, uint setEthGainId, uint setLusdGainId - ) external returns (string memory _eventName, bytes memory _eventParam) { + ) external payable returns (string memory _eventName, bytes memory _eventParam) { amount = getUint(getStakeId, amount); amount = amount == uint(-1) ? lqtyToken.balanceOf(address(this)) : amount;