Skip to content

Instantly share code, notes, and snippets.

@vnavascues
Last active February 5, 2026 14:16
Show Gist options
  • Select an option

  • Save vnavascues/2705e89443087aaa4fd0006a33aa5013 to your computer and use it in GitHub Desktop.

Select an option

Save vnavascues/2705e89443087aaa4fd0006a33aa5013 to your computer and use it in GitHub Desktop.

Stablewatch.io Flow

  1. take in USDT0 on Plasma
  2. bridge to Ethereum mainnet using LZ
  3. Swap into USDC
  4. plug into the Sky PSM to swap from USDC to USDS or sUSDS
  5. Bridge back to Plasma using the USDS / sUSDS LZ bridge that we are currently working on

Request

NOTE: the request below covers from step 1 to 4; leaving sUSDS funds on Ethereum and awaiting to bridge them back to Plasma.

curl -X 'POST' \
  'https://api.enso.finance/api/v1/shortcuts/bundle?chainId=9745&fromAddress=0xd8da6bf26964af9d7eed9e03e53415d37aa96045&referralCode=0123456789ABCDEF&routingStrategy=router&receiver=0xd8da6bf26964af9d7eed9e03e53415d37aa96045' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer 1e02632d-6feb-4a75-a157-documentation' \
  -H 'Content-Type: application/json' \
  -d '[
  {
    "protocol": "stargate",
    "action": "bridge",
    "args": {
      "primaryAddress": "0x02ca37966753bdddf11216b73b16c1de756a7cf9",
      "destinationChainId": "1",
      "tokenIn": "0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb",
      "amountIn": "1000000000",
      "receiver": "0xd8da6bf26964af9d7eed9e03e53415d37aa96045",
	  "callback": [
		{
		  "protocol": "enso",
		  "action": "balance",
		  "args": {
			"token": "0xdac17f958d2ee523a2206206994597c13d831ec7"
		  }
		},
        {
          "protocol": "enso",
          "action": "route",
          "args": {
            "tokenIn": "0xdac17f958d2ee523a2206206994597c13d831ec7",
            "tokenOut": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
            "amountIn": { "useOutputOfCallAt": 0 }
          }
        },
        {
          "protocol": "sky-lite-psm-usds-usdc",
          "action": "deposit",
          "args": {
			"primaryAddress": "0xA188EEC8F81263234dA3622A406892F3D630f98c",
            "tokenIn": "0xa0b86991c6218b36c1d19d4a2e9eb0ce3606eb48",
            "tokenOut": "0xdC035D45d973E3EC169d2276DDab16f1e407384F",
            "amountIn": { "useOutputOfCallAt": 1 }
          }
        },
        {
          "protocol": "spark",
          "action": "deposit",
          "args": {
			"primaryAddress": "0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD",
            "tokenIn": "0xdC035D45d973E3EC169d2276DDab16f1e407384F",
            "tokenOut": "0xa3931d71877c0e7a3148cb7eb4463524fec27fbd",
            "amountIn": { "useOutputOfCallAt": 2 }
          }
        }
	  ]
    }
  }
]'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment