Skip to content

Instantly share code, notes, and snippets.

Flow 1

avalanche:avUSD -bridge:ccip-> monad:avUSD -swap-> monad:AUSD -swap-> monad:usdc -bridge:[cctp]-> avalanche:usdc

Notes:

  • Monad is choosen cause avUSD/AUSD pool is deep, same as AUSD/USDC.

  • CCIP from Avalanche to Monad is sub-second finality. Monad has 48s finality (only relevant for CCIP, which won't be used on the 2nd leg, more below).

@vnavascues
vnavascues / enso_n_kinetiq_bridge_to_hypercore.md
Last active August 11, 2026 15:50
Bridging assets to HyperCore, including CCTP <> HyperCore flows for Kinetiq

Enso API — Moving Assets to HyperCore

Three flows for Kinetiq, all returning a ready-to-sign tx object:

  1. kHYPE → HyperCore — route/nontokenized, same-chain (HyperEVM → Core) or cross-chain from any supported chain
  2. USDC → HyperCore, CCTP only — route/nontokenized, cross-chain, all bridges excluded except CCTP
  3. USDC → HyperCore via CCTP with explicit fee config — bundle, showing transferType and forwardFee

Plus a legend explaining what transferType and forwardFee actually do, where the fees come from (Circle's fee API), and the consequences of changing them.

Flow 1

arb:pyusd -bridge-> eth:pyusd -swap-> eth:usds -swap-> eth:usdc -bridge-> arb:usdc

curl -X 'POST' \
'https://api.enso.finance/api/v1/shortcuts/bundle?chainId=42161&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' \

Enso <> Gami

Lagoon Vaults

msaDEF

Deposit:

curl -X 'GET' \

Altura Deposit Flow 1

op:usdt --bridge--> hyper:usdt0 --deposit--> hyper:altv --bridge--> op:altv

Request

curl -X 'POST' \
  'https://api.enso.finance/api/v1/shortcuts/bundle?chainId=10&fromAddress=0xd8da6bf26964af9d7eed9e03e53415d37aa96045&referralCode=0123456789ABCDEF&routingStrategy=router&receiver=0xd8da6bf26964af9d7eed9e03e53415d37aa96045' \
  -H 'accept: application/json' \
  -H 'Authorization: Bearer 1e02632d-6feb-4a75-a157-documentation' \

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

@vnavascues
vnavascues / EVM_Regex_Decompiler.md
Created December 29, 2022 16:08 — forked from vicnaum/EVM_Regex_Decompiler.md
EVM Regex Decompiler
@vnavascues
vnavascues / get-location-current-conditions.toml
Created October 29, 2021 17:38
A TOML jobspec for the AccuWeather EA
type = "directrequest"
schemaVersion = 1
minContractPaymentLinkJuels = "1000000000000000000" # 0.1 LINK or 1 LINK
name = "AW AccuWeather Get Current Conditions by Location Coordinates 3"
contractAddress = "0x0000000000000000000000000000000000000000" # Replace with Operator.sol address (also in submit_tx task)
maxTaskDuration = "0s"
observationSource = """
decode_log [type=ethabidecodelog
abi="OracleRequest(bytes32 indexed specId, address requester, bytes32 requestId, uint256 payment, address callbackAddr, bytes4 callbackFunctionId, uint256 cancelExpiration, uint256 dataVersion, bytes data)"
data="$(jobRun.logData)"
@vnavascues
vnavascues / AccuweatherConsumer.sol
Last active November 28, 2021 19:34
An AccuWeather Consumer contract
// SPDX-License-Identifier: MIT
pragma solidity 0.8.4;
import "@chainlink/contracts/src/v0.8/ChainlinkClient.sol";
/**
* **** Data Conversions ****
*
* countryCode (bytes2)
* --------------------
@vnavascues
vnavascues / get-location-current-conditions.json
Created October 25, 2021 19:11
A JSON jobspec for the AccuWeather EA
{
"name": "AW AccuWeather Get Current Conditions by Location Coordinates",
"initiators": [
{
"type": "runlog",
"params": {
"address": "0x0000000000000000000000000000000000000000"
}
}
],