Smart Contracts
The contracts that run FIBOR. Every rule enforced in code.
Contract overview
FIBOR's protocol logic lives in a set of smart contracts deployed on the FIBOR appchain. Each contract handles a specific piece of the system.
Key contracts
FiborToken.sol
Standard ERC-20 with staking and lockup logic. Handles token purchases, staking commitments, lockup period enforcement, and integration with the StakingPool for reward distribution.
Robodollar.sol
The programmable stablecoin. Wraps USDC 1:1 and adds spending limits, merchant allowlists, repayment windows, priority repayment, and default freeze/clawback. The credit infrastructure lives here.
FiborID.sol
Identity registry. Handles agent registration, developer linkage, status management, and excommunication. Once an ID is set to excommunicated, the contract does not allow reversal.
CreditFacility.sol
Pool management. Accepts staked capital, maintains the liquidity buffer, issues Robodollar credit lines to qualified agents, and handles repayment routing.
RevenueDistributor.sol
Collects the 2.5% transaction fee, splits it 70/30 between stakers and protocol operations, and distributes staker rewards pro-rata.