Underlying Framework
PrimeVault abstracts DeFi complexity with gasless deposits, AI-driven yield strategies, and transparent cross-chain execution.
End-to-End Flow
PrimeVault’s flow is designed to abstract away every technical complexity for the user, while maintaining capital efficiency and risk control at the protocol level. Below is the detailed process:
1. Cross-chain Deposit (from SrcChain to DstChain)
User initiates a deposit: user calls
crossChainDeposit()with any token from SrcChain.Cross-chain Aggregator: convert assets to DstToken on DstChain.
EIP-7702 authorize: The user
signAuthorizemessage to grant the Invoker permission, allowing gas fees to be sponsored by a Relayer.Prime Execution: The Hybrid Smart Account (EIP-7702) executes batched transactions via the Invoker & PayMaster — such as token approval and staking — with gas fees sponsored by a Relayer.
Immediate Minting:
SLPToken& Shares minted synchronously at current PPS.Asset Custody: Assets transferred to vault’s strategy for allocation.
2. PrimeAI-Driven (Runtime Layer)
Prime AI performs analysis to determine the optimal strategy: APRs, liquidity depth, volatility, IL risk.
Processes the data set and runs optimization models to evaluate risk-adjusted returns. And identifies potential improvements in allocation efficiency and risk exposure.
Proposes core strategies: yield generation, portfolio optimization, and portfolio rebalancing.
Timelock Period: 1-hour delay configurable by governance for strategy hooks.
Approve strategy: PrimeAI-Driven approved and new strategies enabled.
Execution: Strategist executes hooks to deploy capital.
PrimeAI-Driven collects rewards generated from strategies and redistributes them to each vault based on contribution.
A portion of the converted yield is dynamically routed into the IL Reserve Fund, with the contribution rate adjusted according to IL statistics.
3. Cross-chain Rewards Distribute
User select DstChain and call
fullyClaimRewards.EIP-7702 authorize: The user
signAuthorizemessage to grant the Invoker permission, allowing gas fees to be sponsored by a Relayer.Prime Execution: The Hybrid Smart Account (EIP-7702) executes batched transactions via the Invoker & PayMaster — such as token approval, bridge, swap — with gas fees sponsored by a Relayer.
The Cross-chain Aggregator executes actions to transfer assets to the destination chain selected by the user. Rewards are converted into stablecoins (USDC preferred) through on-chain DEXs.
4. Cross-chain Redemptions
User select DstChain and call
requestWithdraw().Immediate burning: Shares burned.
The user must wait for an 8-day lock period. This duration can be customized by the vault governance.
Fulfillment: Strategist executes hooks to free up assets.
Asset Claim: User calls
withdraw()via Hybrid Smart Account (EIP-7702) to receive assets — with gas fees sponsored by a Relayer.The Cross-chain Aggregator executes actions to transfer assets to the destination chain selected by the user.
Last updated
