Asset Integration

List or accept syrupUSDC & syrupUSDT as collateral or liquidity in your protocol.

syrupUSDC and syrupUSDT are ERC-4626 vault tokens on Ethereum mainnet. This page covers token addresses and three methods for obtaining pricing data.

Token addresses

Pricing

Option 1: Smart contract (ERC-4626)

syrupUSDC and syrupUSDT use the ERC-4626 tokenized vault standard. You can query the token price directly from the contract using two functions:

  1. convertToAssets(uint256 shares_) - Returns the amount of underlying assets (USDC/USDT) that would be received for a given number of shares. Use this for display purposes and general price calculations.

  2. convertToExitAssets(uint256 shares_) - Returns the amount of underlying assets accounting for any unrealized losses in the pool. Use this when calculating actual redemption values.

Both tokens use 6 decimals. To get the price per token, call either function with 1000000 (1 share):

uint256 pricePerShare = ISyrupToken(syrupUSDC).convertToAssets(1000000);

Option 2: Pyth Oracle

Pyth Network provides low-latency, high-fidelity price feeds for syrupUSDC and syrupUSDT. Pyth calculates pricing using the smart contract ERC-4626 functions.

Feed IDs

Token
Price Feed ID

syrupUSDC/USDC

0x2ad31d1c4a85fbf2156ce57fab4104124c5ef76a6386375ecfc8da1ed5ce1486

syrupUSDT/USDT

0x7e10170c23d7df62d301b2ade26854200ee584f3f3b84cb2e5195adf35c5b97f

Contract addresses

Get price from Pyth

Offchain: Fetch price from Pyth Hermes API

bash

javascript

See Pyth documentationarrow-up-right for complete integration guides.

Option 3: CoinGecko / CoinMarketCap APIs

CoinGecko and CoinMarketCap track syrupUSDC and syrupUSDT prices via DEX pool data. These prices can fluctuate with onchain swaps, so we recommend Options 1 & 2.

Which price to use

Use case
Recommended method

DeFi protocols requiring oracle feeds

Option 1 (ERC-4626 functions) or Option 2 (Pyth)

Frontend display / portfolios

Option 1 (ERC-4626 functions) or Option 2 (Pyth)

Smart contract integrations

Option 1 (ERC-4626 functions)

Resources & contact

Last updated

Was this helpful?