Use Transaction Batching on Moonbeam
under review
t
timbotronic
Moonbeam has utility precompile solidity contracts that allow you to leverage substrate features, such as transaction batching.
The midas UX could be dramatically improved for MB users by batching requests together, for example:
- Claiming both reward tokens in 1 txn
- Approving token, depositing token to vault, enabling collateral; in 1 txn
etc
More details are here:
C
Carlo Mazzaferro
under review
Thanks for the recommendation! We'll look into this. We actually have in planning the implementation of Multicall txs for most of these actions, so that might suffice.
We'll keep posted on the developments.
t
timbotronic
Carlo Mazzaferro: Not sure multicall can do the above txn flow, as you have two separate callers when doing approve token & transfer_from (one from EOA, the other contract). The good thing about using utility.batchAll(), is that you don't need to rejig your underlying calls, you just load them up as args.