Concepts
Onchain Router Contracts
The Liquidity Router Contract is a core component of Aarc’s execution infrastructure. It manages bridging, swaps, and final contract interactions on the destination chain, delivering exactly the specified tokens and amounts.
Core Functions
Execution & Security
- Controlled Access - Only whitelisted Aarc relayers can call the router, preventing unauthorized access to user deposits.
- Intent Validation - Each transaction utilizes an EIP-712 signature to verify that it matches the user’s deposit intent accurately. There are no hidden steps or redirections.
- Single-Use Logic - Using unique deposit addresses, funds are never pooled. Every transaction operates independently, isolating risk and eliminating the need for token allowances.
These safeguards ensure tokens arrive on the correct chain in the requested amounts.
Transaction Guarantees
- Exact Delivery - TheRouterr ensures that the final output on the destination chain matches the user’s specified asset and amount, which is essential for DeFi actions (e.g., vault deposits) or NFT purchases.
- **Atomic Execution - **Transactions either fully complete or revert. When slippage limits or liquidity constraints are not met, the Router stops the process and initiates a refund, preventing partial executions and stuck tokens.
Supported Assets & Sources
- ERC-20 Tokens & Native Assets - Includes common EVM tokens (USDT, USDC, DAI) and chain-native coins like ETH or MATIC.
- Multi-Channel Funding - Deposits can be made from on-chain wallets (e.g., MetaMask), centralized exchanges (e.g., Coinbase, Binance), or fiat on-ramps, without requiring additional steps.
Users don’t need separate approvals or chain-native gas on the destination; Aarc handles these details for a true one-click experience.
Fee Handling
- No Extra Protocol Fee - Aarc charges no additional protocol fees beyond standard network and liquidity provider costs.
- Transparent Costs - All bridging and swap fees are displayed upfront before confirmation. Network gas fees vary with chain congestion; LP and Slippage fees typically range from 0.05% to 0.3%.
- Minimal Overhead - By combining bridging, swaps, and final calls into a single transaction, the Router’s total fees are often lower than those incurred by executing steps separately.
Failures & Refunds
If a transaction cannot be completed within 30 minutes (due to insufficient liquidity, network delays, or route failures), the Routerr automatically initiates a refund:
- **Refund Chain & Asset - **Users receive refunds on the chain where the transaction failed, typically in stablecoins (e.g., USDC/USDT) or ETH. For failures that occur before bridging, users retain their original asset.
- **Partial Gas Costs - **While pre-failure gas fees aren’t recoverable, Aarc’s aggregator logic minimizes these costs.
- **Guaranteed Outcome - **Users always receive either their exact requested amount on the destination chain or a refund, eliminating uncertainty and stuck funds.
Need Help?
If you need help, visit our Support page.