SwapHelper
SwapHelper
Overview
Architecture
┌─────────────────────────┐
│ Venus Swap API │
│ (Backend Service) │
└───────────┬─────────────┘
│ Signs multicall payload
▼
┌─────────────────────────┐
│ Frontend / User │
│ │
└───────────┬─────────────┘
│ Passes signed data to LSM
▼
┌─────────────────────────┐
│ LeverageStrategiesManager│
│ (Flash Loan Callback) │
└───────────┬─────────────┘
│ Calls multicall
▼
┌─────────────────────────┐
│ SwapHelper │
│ - Verifies signature │
│ - Executes calls │
└───────────┬─────────────┘
│ genericCall
▼
┌─────────────────────────┐
│ DEX Router │
│ (Uniswap, 1inch, etc.) │
└─────────────────────────┘Inheritance
State Variables
Variable
Type
Description
Constants
Solidity API
multicall
Name
Type
Description
genericCall
Name
Type
Description
sweep
Name
Type
Description
approveMax
Name
Type
Description
setBackendSigner
Name
Type
Description
Events
Event
Parameters
Description
Custom Errors
Error
Description
Security Considerations
Signature Verification
Access Control
Reentrancy Protection
EIP-712 Domain
Deployment
Integration
With LeverageStrategiesManager
For Developers
Swap API Request
Parameter
Description
Audits
Last updated

