π οΈ For Developers (Technical Details)
This section is for developers looking to understand the technical architecture or integrate with Vaultec.
Smart Contract ABIs
The platform interacts with several smart contracts. Their ABIs (Application Binary Interfaces) are crucial for understanding their functions and events.
vaultec-core-abi.ts
: ABI for the main Vaultec protocol contract(s).vaultec-trading-abi.ts
: ABI for contracts related to trading in Community Vaults.personal-vault-trading-abi.ts
: ABI for contracts related to trading in Personal Vaults.erc20-abi.ts
: Standard ABI for ERC20 token interactions.
Key Hooks (Frontend Logic)
The frontend application utilizes custom React hooks to manage state and interactions with smart contracts:
useVaultecCore
: Interacting with core protocol functions.useVaultecTrading
: Handling trading logic for Community Vaults.usePersonalVaultTrading
: Handling trading logic for Personal Vaults.useTokenBalance
: Fetching and displaying token balances.useCustomTokens
: Managing user-added custom tokens.useUniswapRouter
: Interacting with Uniswap or a similar DEX router.useAiContext
&useAiActions
: Managing state and actions for the AI features.
Last updated