Smart Contract Integration
Welcome to the Smart Contract Integration documentation for Digifi.
Overview
This section provides comprehensive guides for integrating blockchain functionality into your applications, including token creation, liquidity management, and rewards distribution on Base Mainnet.
Network Details
- Network: Base Mainnet
- Chain ID: 8453
- RPC URL: https://mainnet.base.org (opens in a new tab)
- Block Explorer: https://basescan.org (opens in a new tab)
Core Features
Token Rewards System
Learn how to integrate a blockchain token rewards system that allows users to view token information, check pending rewards, and claim their rewards.
View Token Rewards Documentation →
Token Creation & Deployment
Build a token deployment interface that allows users to create their own ERC20 tokens with automatic Uniswap V4 liquidity pools.
View Token Deployment Documentation →
Contract Addresses
TokenFactory (ETH-based)
Creates token pairs with native ETH as the base currency.
- Factory Contract:
0xeF6ce237F69D238Fe3CfAB801f24b4cfd3A54B9D(opens in a new tab) - Token Implementation:
0x974d1b4dA02ee570041175db77e373522F8e6AB0(opens in a new tab) - Base Currency: Native ETH
TokenFactoryUD (DIGI-based)
Creates token pairs with $DIGI token as the base currency instead of ETH.
- Factory Contract:
0xcdAB147bC10F4eCc32Fc0bc96c2D739C6F21FAa5(opens in a new tab) ✅ Verified - Token Implementation:
0x05756826f3061E1F177B86D8bf885bA7def462E7(opens in a new tab) ✅ Verified - Base Currency: DIGI Token (
0x0A1a3A82c75144D059bC36D09fA1F9Be4fA0EeF0(opens in a new tab))
Key Differences
| Feature | TokenFactory (ETH) | TokenFactoryUD (DIGI) |
|---|---|---|
| Base Currency | Native ETH | $DIGI Token |
| Pool Pairs | ETH/Token | DIGI/Token |
| Use Case | General token launches | DIGI ecosystem integration |
| Starting Price | Fixed (very low) | Custom (sqrtPriceX96) |
| Approval Needed | No (ETH is native) | Yes (must approve DIGI spending) |
| Contract | 0xeF6ce237F69D238Fe3CfAB801f24b4cfd3A54B9D | 0xcdAB147bC10F4eCc32Fc0bc96c2D739C6F21FAa5 |
Getting Started
- Choose the integration that fits your needs
- Follow the step-by-step implementation guides
- Test on Base Mainnet with small amounts
- Implement proper error handling and validation
Security Best Practices
- ✓ Always validate user inputs
- ✓ Verify network (Chain ID 8453)
- ✓ Check user balance before transactions
- ✓ Handle transaction rejections gracefully
- ✓ Never store private keys
- ✓ Use HTTPS only
- ✓ Display all costs upfront