From f37b863815ce4cddd18a01343e98946f9492c7d3 Mon Sep 17 00:00:00 2001 From: Edward Mulraney Date: Mon, 26 Jul 2021 08:43:12 -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 d6e5aaf9..5628499c 100644 --- a/contracts/mainnet/connectors/liquity/main.sol +++ b/contracts/mainnet/connectors/liquity/main.sol @@ -437,7 +437,7 @@ abstract contract LiquityResolver is Events, Helpers { function claimStakingGains( uint setEthGainId, uint setLusdGainId - ) external returns (string memory _eventName, bytes memory _eventParam) { + ) external payable returns (string memory _eventName, bytes memory _eventParam) { uint ethGain = staking.getPendingETHGain(address(this)); uint lusdGain = staking.getPendingLUSDGain(address(this));