Skip to content

Solidity implementation of the Frax Protocol

License

Notifications You must be signed in to change notification settings

ZrowGz/frax-solidity

This branch is 91 commits ahead of, 43 commits behind FraxFinance/frax-solidity:master.

Folders and files

NameName
Last commit message
Last commit date

Latest commit

4ec0394 · Mar 22, 2023
Feb 16, 2023
Mar 15, 2023
Mar 22, 2023
Mar 15, 2023
Mar 15, 2023
Feb 22, 2022
Mar 5, 2022
Feb 23, 2023
Oct 28, 2022
Jan 6, 2023
Jan 19, 2023
Feb 16, 2023
Feb 21, 2022
Feb 22, 2022
Feb 23, 2023
Jan 3, 2023
Feb 16, 2023
Dec 6, 2021

Repository files navigation

Frax Finance – Solidity Implementation

🖥 Websitehttps://frax.finance

📖 Documentationhttps://docs.frax.finance

📲 Telegramhttps://t.me/fraxfinance

What is Frax?

Frax is the first fractional-algorithmic stablecoin protocol. Frax is open-source, permissionless, and entirely on-chain – currently implemented on Ethereum (with possible cross chain implementations in the future). The end goal of the Frax protocol is to provide a highly scalable, decentralized, algorithmic money in place of fixed-supply digital assets like BTC.

Frax is a new paradigm in stablecoin design. It brings together familiar concepts into a never before seen protocol:

  • Fractional-Algorithmic – Frax is the first and only stablecoin with parts of its supply backed by collateral and parts of the supply algorithmic. The ratio of collateralized and algorithmic depends on the market's pricing of the FRAX stablecoin. If FRAX is trading at above $1, the protocol decreases the collateral ratio. If FRAX is trading at under $1, the protocol increases the collateral ratio.

  • Decentralized & Governance-minimized – Community governed and emphasizing a highly autonomous, algorithmic approach with no active management.

  • Fully on-chain oracles – Frax v1 uses Uniswap (ETH, USDT, USDC time-weighted average prices) and Chainlink (USD price) oracles.

  • Two Tokens – FRAX is the stablecoin targeting a tight band around $1/coin. Frax Shares (FXS) is the governance token which accrues fees, seigniorage revenue, and excess collateral value.

  • Swap-based Monetary Policy – Frax uses principles from automated market makers like Uniswap to create swap-based price discovery and real-time stabilization incentives through arbitrage.

Running tests

cd ./src/hardhat npx hardhat test ./test/FraxSwap/fraxswap-twamm-test.js

About

Solidity implementation of the Frax Protocol

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Solidity 52.0%
  • JavaScript 41.9%
  • Vyper 3.4%
  • TypeScript 2.7%