TribFi Protocol Documentation • Base Mainnet

TribFi Protocol Whitepaper

The decentralized architecture for fair-launch community tokens, zero-rug locked liquidity, and lifetime creator rewards on Base. Built with fixed 1 Billion token supplies, 5% anti-snipe limits, and permanent non-custodial smart contracts.

Section 18 • Developer Reference, Security & Legal
~5 min read•18 of 20

Developer Quick-Reference & Contract API Matrix

Complete integration guide, primary write/view methods, and live code snippets

1. Deployed Contract Addresses on Base

TribFi contracts are deployed natively on Base Mainnet (Chain ID 8453):

TribFiFactory0xFaC7000000000000000000000000000000000001
TribFiBondingCurve0xCuRvE00000000000000000000000000000000002
FeeEscrow0xEsCrOw0000000000000000000000000000000003
LiquidityLockVault0xLoCkVaUlT0000000000000000000000000000004

2. Primary Write & View Methods Matrix

FunctionContractTypeDescription
createToken(...)TribFiFactoryWriteDeploys 1B token & curve atomically
buy(address,uint256)BondingCurveWrite (Payable)Swaps ETH for tokens on curve
sell(address,uint256,uint256)BondingCurveWriteSells tokens back to curve for ETH
withdrawCreatorFee(address)FeeEscrowWriteWithdraws accumulated 0.5% royalties

3. Ethers v6 & Viem Code Snippets

// Ethers v6 Buy Example
import { ethers } from "ethers";

const curveAbi = ["function buy(address token, uint256 minTokensOut) external payable returns (uint256)"];
const curve = new ethers.Contract(CURVE_ADDRESS, curveAbi, signer);

const tx = await curve.buy(tokenAddress, minTokensOut, { value: ethers.parseEther("0.1") });
await tx.wait();