Giter Site home page Giter Site logo

phybrackets / frax-solidity Goto Github PK

View Code? Open in Web Editor NEW

This project forked from fraxfinance/frax-solidity

0.0 0.0 0.0 10.04 MB

Solidity implementation of the Frax Protocol

License: MIT License

Solidity 71.67% JavaScript 26.79% TypeScript 1.54%

frax-solidity's Introduction

Frax Finance โ€“ Solidity Implementation

๐Ÿ–ฅ Website โ€“ https://frax.finance

๐Ÿ“– Documentation โ€“ https://docs.frax.finance

๐Ÿ“ฒ Telegram โ€“ https://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.

  • 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.

Hardhat

---Testing--- cd ./src/hardhat npx hardhat compile npx hardhat test ./test/vAMM-Tests.js npx hardhat test --no-compile ./test/StakingRewardsDualV3_FRAX_IQ-Tests.js

---Deploying--- cd ./src/hardhat npx hardhat test --no-compile ./test/StakingRewardsDualV3_FRAX_IQ-Tests.js

---Verifying--- cd ./src/hardhat npx hardhat verify --network mainnet --contract contracts/Staking/veFXSYieldDistributorV2.sol:veFXSYieldDistributorV2 --constructor-args veFXSYieldDistributor_arguments.js 0x62C4cf364078C98fA08AfDB4D3d8D87e780Ebd45

frax-solidity's People

Contributors

fortisfortuna avatar jasonhuan avatar mesozoic-technology avatar samkazemian avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.