Skip to content

FlatDefi/flat-contracts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FLAT Protocol — Smart Contracts

All deployed and verified smart contracts for the FLAT Protocol on Ethereum Sepolia.

Overview

FLAT is a CPI-indexed stable currency protocol with a mathematically-driven deflationary mechanism. The protocol consists of 10 contracts across 4 functional groups, all verified on-chain.

Deployed Contracts

Contract Address Tier Etherscan
FLAT 0x6AD27352CEb1B55A1Cbf885cEfC2Ed5A9183aE99 Tier 1 — Fully Immutable View
CPIOracle v4 0x6C7B097af674F8e2daaeADcE05Eb7725083ecF7a Tier 2 — Owner-Controlled Oracle View
FlatSale v3 0x01ddC49b9C366D5c40C57d002BA08fD0eA669189 Tier 3 — Guardian-Protected View
RISE 0xc1E141863414f434E46162A1184345E45CF5a14A Tier 1 — Fully Immutable View
SAVE (Vault) 0x9f0DD6e940478293964aE778e4C720B720cf9cAe Tier 1 — Fully Immutable View
SAVESale v3 0x1735e5a74E4f948E16e987D4C8Ba2a8DE05Cd3CB Tier 3 — Guardian-Protected View
FlatArbitrage 0x20eB6397f14D7dBbF2467B1d3f446caA7803b73C Tier 4 — Admin-Controlled View
BearerSwapV3 0x5de315Dab49012c5bbeC41d7a3B25c6829a3e566 Tier 1 — Fully Immutable View
FlatIDVaultV3 0x25ec1e6d07d70427BFA049Cc349079448080568C Tier 3 — Admin+Guardian View
FlatIDSaveVaultV3 0xe1b70B17AEf2dc810C5EA9b73aEA092B7cA1270B Tier 3 — Admin+Guardian View

All addresses are EIP-55 checksummed. Do not hand-type addresses — copy from this table or from Etherscan directly.

Security Tiers

  • Tier 1 — Fully Immutable: No owner, no admin, no pause, no proxy. Pure bytecode.
  • Tier 2 — Owner-Controlled Oracle: Owner can submit CPI data. No pause. No proxy.
  • Tier 3 — Guardian-Protected: Guardian can pause (time-limited). No proxy. No upgrade.
  • Tier 4 — Admin-Controlled: Admin manages operational parameters. No proxy.

Directory Structure

src/                  # Deployed contract source code (10 contracts)
interfaces/           # Shared interface definitions

External Dependencies

  • OpenZeppelin Contracts 5.x — ERC20, ERC20Permit, Ownable, ReentrancyGuard, SafeERC20
  • Chainlink ETH/USD Feed0x5f4eC3Df9cbd43714FE2740f5E3616155c5b8419
  • Uniswap V2 Router0x7a250d5630B4cF539739dF2C5dAcb4c659F2488D
  • Uniswap V2 Factory0x5C69bEe701ef814a2B6a3EDD4B1652CB9cc5aA6f

Verification

All contracts are verified on Etherscan. You can compare the source code in this repository byte-for-byte with the verified source on Etherscan.

The Singularity Equation

The core protocol mechanic:

P(α) = C / (1 - α)

Where:

  • P = price
  • C = constant (initial price × initial supply)
  • α = absorption ratio (% of supply permanently locked)

As α → 1, price → ∞. This is not a metaphor — it is deployed, verified code executing every 12 seconds on Ethereum.

Links

License

MIT

About

FLAT Protocol smart contracts — all 11 deployed and verified on Ethereum mainnet. MIT license.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors