Stargate Composability

The simplest form of composing Stargate

StargateComposer.sol

StargateComposer is a wrapper contract used to add additional functionality to Stargate Composed calls. Now contracts that want to compose Stargate will need to call swap via the StargateComposer contract instead of the Stargate Router. The new StargateComposer adds the msg.sender into the payload so the destination sgReceive can now identify the source address that initiated the swap via the _srcAddress.

Drawing
StargateComposed deployed as a wrapper on both source and destination chains

Last updated