BTB
/

Shift Protocol

Onchain Capital Allocatorwebsite
Shift (by NebulaLabs) packages managed market-neutral / basis / market-making strategies on perp DEXs (Extended, GRVT, Lighter, Hibachi, RiseX) into vaults that issue an ERC-20 share token. Agents can read share prices and withdrawal status on-chain and request/claim withdrawals; deposits need an off-chain oracle authorisation from Shift.

What you can do

deposit (v1 vault)Deposit the vault asset and receive shares.Normally via the Shift app (app.shiftprotocol.xyz). On-chain: baseToken.approve(vault, amount) -> vault.reqDeposit() -> wait for Shift's oracle to call tvlFeed.updateTvlForDeposit(user, tvl, supply) (emits DepositAllowed on the vault) -> vault.deposit(amount) before the request expires (requestValidity, 40 s at research time). Without Shift's off-chain oracle the deposit cannot complete.
request withdrawalQueue shares for redemption.vault.reqWithdraw(shares). Check vault.getWithdrawStatus() (eth_call with from = user) until status 3.
claim withdrawalReceive the base asset.vault.withdraw() once unlockTime has passed and the batch is resolved.
cancel withdrawalUndo a request still in the open batch.vault.cancelWithdraw()
read share price / TVLValue a position.vault.getSharePrice() (asset decimals) x vault.balanceOf(user)/1e18; history via tvlFeed.getLastTvlEntries(n).
Custodial-style execution: deposit() transfers assets directly to the vault's executor address, which was an EOA (no contract code) for all four vaults at research time; the strategy then runs off-chain on perp venues (Extended/Starknet, GRVT, Lighter, Hibachi). Share value depends on an oracle-reported TVL, not on assets held by the contract.
Admin powers (ShiftAccessControl roles): DEFAULT_ADMIN can pause, change fees, timelock, max TVL, min deposit, executor and fee collector, and toggle a whitelist; ORACLE_ROLE pushes TVL (sets share price); EXECUTOR_ROLE resolves withdrawal batches and sets the redemption rate.
Withdrawals are not instant: timelock (7 days for extUSD v1, vGRVT, hibaUSD; 4 days for ltLLP) plus batch resolution by the executor; these are minimums, not deadlines.
getSharePrice() returns 0 when TVL data is stale (older than freshness()).

Contracts

Read any function, or build a write and sign it. Amounts are in base units (1 USDC = 1000000).
extUSD v1 (Shift Extended Basis USD) vaultvault on base0x4cE3ec1b7B4FFb33A0B70c64a0560A3F341AA2E1
write reqDeposit()
Step 1 of a deposit: open a deposit request for msg.sender. Reverts if one is still valid. The request expires after requestValidity() seconds (40 s on-chain at research time), and Shift's off-chain oracle must call ShiftTvlFeed.updateTvlForDeposit (which calls vault.allowDeposit) inside that window. Done in practice through the Shift app.
write deposit(uint256)
Step 2: deposit USDC (6 decimals, base units) after the oracle authorised the request and before it expires. Approve the vault for USDC first. Amount must be >= minDepositAmount() and TVL must stay <= maxTvl(). Assets go straight to the strategy executor address; shares (18 decimals) are minted at the price of the authorised TVL snapshot.
write reqWithdraw(uint256)
Request withdrawal of a share amount (18 decimals). Shares move into vault escrow and join the current batch. One active request per wallet. Timelock is timelock() seconds (604800 s = 7 days); the batch must also be resolved by Shift's executor.
write withdraw()
Claim USDC for the active request once the timelock has passed and its batch is resolved; burns the escrowed shares. Reverts Locked / BatchNotResolved otherwise.
write cancelWithdraw()
Cancel the pending withdrawal and get shares back; only while the request is still in the current (unprocessed) batch.
read getWithdrawStatus()
Status of msg.sender's withdrawal: (uint8 status 0 none / 1 pending batch / 2 timelock active / 3 ready, shareAmount, tokenAmount, unlockTime). Uses msg.sender, so set `from` to the user in eth_call.
read getSharePrice()
Price of 1 share in USDC units (6 decimals, e.g. 1048186 = 1.048186). Returns 0 if TVL data is stale.
read balanceOf(address)
Vault share balance (ERC-20, 18 decimals). Shares in a pending withdrawal sit in the vault, not the user.
read totalSupply()
Total shares.
read baseToken()
Deposit/withdraw asset (USDC).
read tvlFeed()
ShiftTvlFeed oracle contract for this vault.
read minDepositAmount()
Minimum deposit in USDC base units.
read maxTvl()
Deposit cap (TVL, asset base units).
read timelock()
Withdrawal timelock in seconds for new requests.
read paused()
True if deposits/requests are paused (withdraw() still works).
extUSD ShiftTvlFeedother on base0xdBE599c184CC13D82F956fA5adAa1b18c0Ff67D3
read getLastTvl()
Latest TVL snapshot (uint256 value in base-asset units, uint256 timestamp, uint256 supplySnapshot). Pushed by Shift's ORACLE_ROLE.
read getLastTvlEntries(uint256)
Last N TVL snapshots (array of the same struct); useful for share-price history.
read decimals()
Decimals of TVL values (= base asset decimals, 6).
read shiftVault()
The vault this feed serves.
vGRVT (Shift GRVT Hybrid Vault) vaultvault on arbitrum0x6d7C897cD8B402690C07e7263C9f59B3777ae3c2
write reqDeposit()
Step 1 of a deposit: open a deposit request for msg.sender. Reverts if one is still valid. The request expires after requestValidity() seconds (40 s on-chain at research time), and Shift's off-chain oracle must call ShiftTvlFeed.updateTvlForDeposit (which calls vault.allowDeposit) inside that window. Done in practice through the Shift app.
write deposit(uint256)
Step 2: deposit USD₮0 (6 decimals, base units) after the oracle authorised the request and before it expires. Approve the vault for USD₮0 first. Amount must be >= minDepositAmount() and TVL must stay <= maxTvl(). Assets go straight to the strategy executor address; shares (18 decimals) are minted at the price of the authorised TVL snapshot.
write reqWithdraw(uint256)
Request withdrawal of a share amount (18 decimals). Shares move into vault escrow and join the current batch. One active request per wallet. Timelock is timelock() seconds (604800 s = 7 days); the batch must also be resolved by Shift's executor.
write withdraw()
Claim USD₮0 for the active request once the timelock has passed and its batch is resolved; burns the escrowed shares. Reverts Locked / BatchNotResolved otherwise.
write cancelWithdraw()
Cancel the pending withdrawal and get shares back; only while the request is still in the current (unprocessed) batch.
read getWithdrawStatus()
Status of msg.sender's withdrawal: (uint8 status 0 none / 1 pending batch / 2 timelock active / 3 ready, shareAmount, tokenAmount, unlockTime). Uses msg.sender, so set `from` to the user in eth_call.
read getSharePrice()
Price of 1 share in USD₮0 units (6 decimals, e.g. 1048186 = 1.048186). Returns 0 if TVL data is stale.
read balanceOf(address)
Vault share balance (ERC-20, 18 decimals). Shares in a pending withdrawal sit in the vault, not the user.
read totalSupply()
Total shares.
read baseToken()
Deposit/withdraw asset (USD₮0).
read tvlFeed()
ShiftTvlFeed oracle contract for this vault.
read minDepositAmount()
Minimum deposit in USD₮0 base units.
read maxTvl()
Deposit cap (TVL, asset base units).
read timelock()
Withdrawal timelock in seconds for new requests.
read paused()
True if deposits/requests are paused (withdraw() still works).
vGRVT ShiftTvlFeedother on arbitrum0xCA1EC464b5037271a2758afb0997677916886320
read getLastTvl()
Latest TVL snapshot (uint256 value in base-asset units, uint256 timestamp, uint256 supplySnapshot). Pushed by Shift's ORACLE_ROLE.
read getLastTvlEntries(uint256)
Last N TVL snapshots (array of the same struct); useful for share-price history.
read decimals()
Decimals of TVL values (= base asset decimals, 6).
read shiftVault()
The vault this feed serves.
ltLLP (Shift Lighter LLP Wrapper) vaultvault on arbitrum0x956bdd9C18B786b082fd50C52722d254f0CB6964
write reqDeposit()
Step 1 of a deposit: open a deposit request for msg.sender. Reverts if one is still valid. The request expires after requestValidity() seconds (40 s on-chain at research time), and Shift's off-chain oracle must call ShiftTvlFeed.updateTvlForDeposit (which calls vault.allowDeposit) inside that window. Done in practice through the Shift app.
write deposit(uint256)
Step 2: deposit USDC (6 decimals, base units) after the oracle authorised the request and before it expires. Approve the vault for USDC first. Amount must be >= minDepositAmount() and TVL must stay <= maxTvl(). Assets go straight to the strategy executor address; shares (18 decimals) are minted at the price of the authorised TVL snapshot.
write reqWithdraw(uint256)
Request withdrawal of a share amount (18 decimals). Shares move into vault escrow and join the current batch. One active request per wallet. Timelock is timelock() seconds (345600 s = 4 days); the batch must also be resolved by Shift's executor.
write withdraw()
Claim USDC for the active request once the timelock has passed and its batch is resolved; burns the escrowed shares. Reverts Locked / BatchNotResolved otherwise.
write cancelWithdraw()
Cancel the pending withdrawal and get shares back; only while the request is still in the current (unprocessed) batch.
read getWithdrawStatus()
Status of msg.sender's withdrawal: (uint8 status 0 none / 1 pending batch / 2 timelock active / 3 ready, shareAmount, tokenAmount, unlockTime). Uses msg.sender, so set `from` to the user in eth_call.
read getSharePrice()
Price of 1 share in USDC units (6 decimals, e.g. 1048186 = 1.048186). Returns 0 if TVL data is stale.
read balanceOf(address)
Vault share balance (ERC-20, 18 decimals). Shares in a pending withdrawal sit in the vault, not the user.
read totalSupply()
Total shares.
read baseToken()
Deposit/withdraw asset (USDC).
read tvlFeed()
ShiftTvlFeed oracle contract for this vault.
read minDepositAmount()
Minimum deposit in USDC base units.
read maxTvl()
Deposit cap (TVL, asset base units).
read timelock()
Withdrawal timelock in seconds for new requests.
read paused()
True if deposits/requests are paused (withdraw() still works).
ltLLP ShiftTvlFeedother on arbitrum0x4062c539D09A76D79e366F8C2a2e2F987EAD1FE0
read getLastTvl()
Latest TVL snapshot (uint256 value in base-asset units, uint256 timestamp, uint256 supplySnapshot). Pushed by Shift's ORACLE_ROLE.
read getLastTvlEntries(uint256)
Last N TVL snapshots (array of the same struct); useful for share-price history.
read decimals()
Decimals of TVL values (= base asset decimals, 6).
read shiftVault()
The vault this feed serves.
hibaUSD (Shift Hibachi Basis USD) vaultvault on arbitrum0x7174f0bD02664BebDB6Aa79a99fAF949570A10bd
write reqDeposit()
Step 1 of a deposit: open a deposit request for msg.sender. Reverts if one is still valid. The request expires after requestValidity() seconds (40 s on-chain at research time), and Shift's off-chain oracle must call ShiftTvlFeed.updateTvlForDeposit (which calls vault.allowDeposit) inside that window. Done in practice through the Shift app.
write deposit(uint256)
Step 2: deposit USD₮0 (6 decimals, base units) after the oracle authorised the request and before it expires. Approve the vault for USD₮0 first. Amount must be >= minDepositAmount() and TVL must stay <= maxTvl(). Assets go straight to the strategy executor address; shares (18 decimals) are minted at the price of the authorised TVL snapshot.
write reqWithdraw(uint256)
Request withdrawal of a share amount (18 decimals). Shares move into vault escrow and join the current batch. One active request per wallet. Timelock is timelock() seconds (604800 s = 7 days); the batch must also be resolved by Shift's executor.
write withdraw()
Claim USD₮0 for the active request once the timelock has passed and its batch is resolved; burns the escrowed shares. Reverts Locked / BatchNotResolved otherwise.
write cancelWithdraw()
Cancel the pending withdrawal and get shares back; only while the request is still in the current (unprocessed) batch.
read getWithdrawStatus()
Status of msg.sender's withdrawal: (uint8 status 0 none / 1 pending batch / 2 timelock active / 3 ready, shareAmount, tokenAmount, unlockTime). Uses msg.sender, so set `from` to the user in eth_call.
read getSharePrice()
Price of 1 share in USD₮0 units (6 decimals, e.g. 1048186 = 1.048186). Returns 0 if TVL data is stale.
read balanceOf(address)
Vault share balance (ERC-20, 18 decimals). Shares in a pending withdrawal sit in the vault, not the user.
read totalSupply()
Total shares.
read baseToken()
Deposit/withdraw asset (USD₮0).
read tvlFeed()
ShiftTvlFeed oracle contract for this vault.
read minDepositAmount()
Minimum deposit in USD₮0 base units.
read maxTvl()
Deposit cap (TVL, asset base units).
read timelock()
Withdrawal timelock in seconds for new requests.
read paused()
True if deposits/requests are paused (withdraw() still works).
hibaUSD ShiftTvlFeedother on arbitrum0x66b3D1092f6428C82052dADB00533a9EdE5B57DB
read getLastTvl()
Latest TVL snapshot (uint256 value in base-asset units, uint256 timestamp, uint256 supplySnapshot). Pushed by Shift's ORACLE_ROLE.
read getLastTvlEntries(uint256)
Last N TVL snapshots (array of the same struct); useful for share-price history.
read decimals()
Decimals of TVL values (= base asset decimals, 6).
read shiftVault()
The vault this feed serves.