Stargate Composability

The simplest form of composing Stargate


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.

Composing Stargate will revert on source if not using the StargateComposer.

Last updated