Approving ERC20s in our multicall
Before calling a contract with tokens from a swap, you must first approve the contract to spend the Squid Multicall contract's balance. Below is the Javascript code to approve the multicall's current balance of the tokens.
payload
payload
is an object passed into the Squid smart contracts for call types 1 and ?? It is used for patching the current balance of a token into the calldata of the next call. This allows us to make long strings of calls, even if the output of each call is not deterministic (e.g. slippage).
Last updated