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>
This commit is contained in:
Edward Mulraney 2021-07-26 08:43:12 -04:00 committed by GitHub
parent a126642e30
commit f37b863815
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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));