The chains that the user is depositing to. Is a list of objects with channelId. Is specific to AMBs. ChainId is the id in gasMap.
The vaults that the user is depositing to. Between volatile and amplified there is a lot of unused variables. So while all arguments aren't used by both, they are used by either.
The addresses of the vaults that the user is depositing to.
The addresses of the assets within the vaults. Needs to be complete.
The addresses of the users on the other chains.
The cost to verify a message by the underlying messaging protocol on the various chains. Can be found by calling the CCI on estimateAdditionalCost.
What is the incentive for gas on the destination chain? Is indexed by from
, to
(in source chain wei).
What is the ack incentive for gas on the source chain? Is indexed by from
chain. (in source chain wei).
Where should unspent gas go? (which is released on acks).
What is the slippage for the deposit? (in WAD percentage). Default 1%.
If gas is to be wrapped, provided here. If only wrapping on chain 2, then set [undefined, Xn].
Returns a sequence of objects, each encapsulating the router arguments configured for a specific chain, alongside the corresponding estimates of gas consumption. The sequence follows with the chain order specified in the input.
Prepares the router arguments for a deposit along with liquidity swaps to balance the deposit over the whole pool.
After calling this method, you should call transferWithPermitForDepositWithLiquiditySwaps
on the returned router arguments object to add the transfer instructions to the router.
All lists should be equal length.
The deposits of the user. If gas is wrapped, continue to set here.