What you can do
| deposit | Deposit an asset into an Upshift vault | Approve the vault (or the Universal Adapter) for the asset, then call vault.deposit(assets, receiver). Check previewDeposit first. |
| request redemption | Start an exit from a vault | Call vault.requestRedeem(shares, receiver, holder). The call returns the claimable epoch. |
| claim redemption | Collect assets after the epoch matures | Call vault.claim(year, month, day, receiver) with the epoch date from requestRedeem. |
| check value | Read the value of a position | balanceOf(account) for shares, then convertToAssets(shares) for the value in the underlying asset. |
Redemptions are epoch based. Funds are not available until the epoch matures and the claim is made.
Vault strategies are run by Upshift and its partners. Losses in a strategy reduce the share price.
The Universal Adapter pulls tokens from the caller. Approve only the amount needed, and check the vault address and vault type before calling deposit.
Some deployments are retired. The docs say the same address can be live on one chain and retired on another, so check the chain as well as the address.
Contracts
Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).Upshift USDC (upUSDC) vault (lending pool proxy)vault on ethereum0x80E1048eDE66ec4c364b4F22C8768fc657FF6A42
write deposit(uint256,address)
ERC-4626 deposit: (assets, receiver). Approve the vault for USDC first. Returns the shares minted to receiver.
write requestRedeem(uint256,address,address)
Request a redemption of shares: (shares, receiverAddr, holderAddr). Returns (assets, claimableEpoch). Redemptions are epoch based, so funds are claimed later with claim.
write claim(uint256,uint256,uint256,address)
Claim a matured redemption: (year, month, day, receiverAddr) for the epoch date. Returns the amounts claimed. Reverts if the epoch has not matured.
read convertToAssets(uint256)
Assets worth a given number of shares at the current rate.
read convertToShares(uint256)
Shares equal to a given asset amount at the current rate.
read previewDeposit(uint256)
Shares that a deposit of the given assets would mint.
read previewRedeem(uint256)
Assets that a redemption of the given shares would return.
read balanceOf(address)
Vault share balance of an account.
write approve(address,uint256)
Approve a spender to move vault shares.
read asset()
Returns the underlying asset of the vault (USDC).
read totalAssets()
Total assets managed by the vault.
Upshift BTC (upBTC) vault (lending pool proxy)vault on ethereum0xEBac5e50003d4B17Be422ff9775043cD61002f7f
write deposit(uint256,address)
ERC-4626 deposit: (assets, receiver). Approve the vault for the BTC asset first. Returns the shares minted to receiver.
write requestRedeem(uint256,address,address)
Request a redemption of shares: (shares, receiverAddr, holderAddr). Returns (assets, claimableEpoch). Funds are claimed later with claim.
write claim(uint256,uint256,uint256,address)
Claim a matured redemption: (year, month, day, receiverAddr). Reverts if the epoch has not matured.
read convertToAssets(uint256)
Assets worth a given number of shares at the current rate.
read convertToShares(uint256)
Shares equal to a given asset amount at the current rate.
read previewDeposit(uint256)
Shares that a deposit of the given assets would mint.
read previewRedeem(uint256)
Assets that a redemption of the given shares would return.
read balanceOf(address)
Vault share balance of an account.
write approve(address,uint256)
Approve a spender to move vault shares.
read asset()
Returns the underlying asset of the vault.
read totalAssets()
Total assets managed by the vault.
Universal Adapter (Ethereum)router on ethereum0xC11c6d8fD8FfFB2045d57b149125C44414d8160B
write deposit(bytes32,uint256,address,uint8,address,address)
Deposit into an Upshift vault in one call: (originCode, depositAmount, vaultAddr, vaultType, assetAddr, receiverAddr). Pulls depositAmount of assetAddr from msg.sender and does no swap. Returns the shares minted. Use bytes32(0) for originCode. vaultType is 1 for ERC-4626 or 2 for Tokenized Vault V2. Approve the adapter first.
Universal Adapter (Base)router on base0x261c97E80C105F85BBbe1416E6eC67C76B9910E2
write deposit(bytes32,uint256,address,uint8,address,address)
Deposit into an Upshift vault in one call: (originCode, depositAmount, vaultAddr, vaultType, assetAddr, receiverAddr). Pulls depositAmount of assetAddr from msg.sender and does no swap. Returns the shares minted. Use bytes32(0) for originCode. vaultType is 1 for ERC-4626 or 2 for Tokenized Vault V2. Approve the adapter first.