Submitted by Jeiwan, also found by libratus, KrisApostolov, Toshii, nobody2018, immeas, qpzm, Emmanuel (1, 2), Viktor_Cortess, 0xkazim, UniversalCrypto, and T1MOH
Proposals that require sending native coins in at least one of their calls cannot be executed.
The InterchainProposalExecutor._execute executes cross-chain governance proposals. The function extracts the list of calls to make under the proposal and calls _executeProposal. _executeProposal, in its turn, makes distinct calls and sends native coins along with each call as specified by the call.value argument:
However, InterchainProposalExecutor._execute is called from a non-payable function, AxelarExecutable.execute, and thus native coins cannot be passed in the call. As a result, proposal calls that have the value argument greater than 0 cannot be executed.
Sending native funds to the contract in advance cannot be a solution because such funds can be stolen by back-running and executing a proposal that would consume them.
Consider implementing an alternative AxelarExecutable contract (i.e. AxelarExecutablePayable) that has the execute function payable and consider inheriting in InterchainProposalExecutor from this alternative implementation, not from AxelarExecutable.
Payable
deanamiel (Axelar) disputed and commented:
berndartmueller (judge) commented:
deanamiel (Axelar) commented:
berndartmueller (judge) commented:
milapsheth (Axelar) commented:
