Difference between revisions of "Frax Finance (FRAX)"
Line 18: | Line 18: | ||
===Bugs/Exploits=== | ===Bugs/Exploits=== | ||
* [https://newsletter.blockthreat.io/p/blockthreat-week-14-2022?token=eyJ1c2VyX2lkIjoxMzk3OTAwLCJfIjoiZHptZ1giLCJpYXQiOjE2NTAyNTAzNTksImV4cCI6MTY1MDI1Mzk1OSwiaXNzIjoicHViLTgxMDUiLCJzdWIiOiJwb3N0LXJlYWN0aW9uIn0.kMOa5UQtljN_snA9qG97LTputckPw8UvVzQgINZ0goM&s=r From] Blockthreat (13-4-2022): | |||
''"Frax patched a [https://twitter.com/danielvf/status/1512774741391724545 vulnerability] that could allow massive slippages after it was responsibly disclosed by Daniel Von Fange."'' | |||
==Governance== | ==Governance== | ||
===Admin Keys=== | ===Admin Keys=== | ||
Line 36: | Line 41: | ||
===Other Details=== | ===Other Details=== | ||
* Leverages a two-token model to create an algorithmic, partially-collateralized stablecoin. | * Leverages a two-token model to create an algorithmic, partially-collateralized [[StableCoin|stablecoin]]. | ||
===Stablecoin=== | ===Stablecoin=== | ||
Line 79: | Line 84: | ||
''But perhaps the most interesting element of Frax is its [https://docs.frax.finance/amo/overview Algorithmic Market Operations (AMOs)]. Frax allows anyone to propose an AMO strategy via governance (a la [[Yearn]]), and if the strategy is good for the Frax ecosystem, it is free to be adopted.'' | ''But perhaps the most interesting element of Frax is its [https://docs.frax.finance/amo/overview Algorithmic Market Operations (AMOs)]. Frax allows anyone to propose an AMO strategy via governance (a la [[Yearn]]), and if the strategy is good for the Frax ecosystem, it is free to be adopted.'' | ||
''One such AMO involves minting FRAX into a [[Curve Finance (CRV)|Curve]] pool to strengthen the peg. (This is essentially like the central bank minting unbacked currency to defend the peg in the market.) Another example might be minting FRAX to lend on [[Compound (COMP)|Compound]] to improve its liquidity, and so on. If it is profitable, or accomplishes a socially useful goal, it can be minted just-in-time and funded via an AMO. But if that AMO overreaches and triggers a decrease in confidence in FRAX (as measured by FRAX going below the peg), the AMO can automatically pull back using the same predefined algorithm."'' | ''One such AMO involves minting FRAX into a [[Curve Finance (CRV)|Curve]] pool to strengthen the peg. (This is essentially like the central bank minting unbacked currency to defend the peg in the market.) Another example might be minting FRAX to [[LEND|lend]] on [[Compound (COMP)|Compound]] to improve its liquidity, and so on. If it is profitable, or accomplishes a socially useful goal, it can be minted just-in-time and funded via an AMO. But if that AMO overreaches and triggers a decrease in confidence in FRAX (as measured by FRAX going below the peg), the AMO can automatically pull back using the same predefined algorithm."'' | ||
=== Fees === | === Fees === | ||
Line 103: | Line 108: | ||
* [https://www.defisafety.com/pqrs/353 From] [[DeFi Safety]] (28-2-2022): | * [https://www.defisafety.com/pqrs/353 From] [[DeFi Safety]] (28-2-2022): | ||
''"The protocol's oracle source is documented at this [https://docs.frax.finance/smart-contracts/oracle location]. The [[Smart Contract (SC)|contracts]] dependent are identified. There is relevant software function documentation. This protocol documents front running [https://docs.frax.finance/smart-contracts/miscellaneous mitigation techniques]. This protocol documents [[Flash Loan|flashloan]] countermeasures at this [https://docs.frax.finance/smart-contracts/frax-pools#state-variables location]."'' | ''"The protocol's oracle source is documented at this [https://docs.frax.finance/smart-contracts/oracle location]. The [[Smart Contract (SC)|contracts]] dependent are identified. There is relevant software function documentation. This protocol documents [[front running]] [https://docs.frax.finance/smart-contracts/miscellaneous mitigation techniques]. This protocol documents [[Flash Loan|flashloan]] countermeasures at this [https://docs.frax.finance/smart-contracts/frax-pools#state-variables location]."'' | ||
==Privacy Method== | ==Privacy Method== | ||
Line 110: | Line 115: | ||
==Roadmap== | ==Roadmap== | ||
*Can be found [Insert link here]. | *Can be found [Insert [[LINK|link]] here]. | ||
==Usage== | ==Usage== | ||
Line 133: | Line 138: | ||
*Full team can be found [here]. | *Full team can be found [here]. | ||
*[https://www.defisafety.com/pqrs/353 From] [[DeFi Safety]] (28-2-2022): | *[https://www.defisafety.com/pqrs/353 From] [[DeFi Safety]] (28-2-2022): | ||
''"Many team members are public and cross-reference their employment."'' | ''"[[MANY|Many]] team members are public and cross-reference their employment."'' | ||
===Funding=== | ===Funding=== |
Revision as of 07:55, 18 April 2022
Basics
- Based in:
- Started in / Announced on:
- Mainnet release:
- Frax Finance is a stablecoin which that blends and leans on elements from both collateralized and algorithmic systems.
History
Audits & Exploits
- Frax offers up to $10m with a static bug bounty program (28-2-2022).
- Scored 81% on DeFi Safety (28-2-2022):
Contract FRAX is extremely active. There is full coverage of deployed contracts in their software function documentation. With a Test to Code ratio of 719%, this protocol has clearly undergone an astonishing amount of testing. In all my time writing reviews, no other protocol has seen so much testing. There are no scripts provided for protocol testing. No report was found. This protocol has not undergone formal verification. Frax has been audited once [by Certik], before launch. 3 major findings were not corrected.
With the comment :
"Frax Finance has been developed with good security in mind, and this protocol's massive $10M bug bounty ensures that every inch of this protocol is measured for cracks - this is the largest amount offered by a protocol we have reviewed. Frax combines this with great oracle documentation, earning them a place among the best. To improve, this protocol might consider elaborating when documenting its testing methodologies. This protocol's architecture is certainly complicated, so users should feel reassured that Frax takes care to ensure there are no clear lines of fracture."
Bugs/Exploits
- From Blockthreat (13-4-2022):
"Frax patched a vulnerability that could allow massive slippages after it was responsibly disclosed by Daniel Von Fange."
Governance
Admin Keys
- From DeFi Safety (28-2-2022):
"Admin control information was clearly documented at this location. The relevant contracts are not identified. Ownership is clearly indicated in this location. Smart contract change capabilities are not identified. This protocol dose not have a pause control, and this is identified. This protocol's timelock documentation can be found at this location. The timelock is 48 hours."
DAO
Treasury
Token
Launch
Token Distribution
Utility
- Has the FXS governance token.
Other Details
- Leverages a two-token model to create an algorithmic, partially-collateralized stablecoin.
Stablecoin
- Has the FRAX stablecoin.
Technology
- Whitepaper can be found here.
- Code can be viewed here. From DeFi Safety (28-2-2022):
"At 479 commits, it's clear Frax's development history is as moving as it is inspirational."
Implementations
- Built on: Ethereum and Avalanche (9-3-2021 expected to be done on 20-3-2021). According to DeFi Safety also on (28-2-2022) BNB Chain, Fantom, Moonriver, Polygon, Solana, Aurora, Harmony and Optimism.
How it works
- From Yield Farmer (16-1-2021):
"Whenever FRAX trades above $1 the protocol’s collateralization ratio is lowered and its algorithmic mechanics become more pronounced, while this collateralization ratio is increased whenever FRAX trades below $1."
- From Delphi Digital (1-2021):
"FRAX maintains its price stability by offloading its volatility to FXS, which is the governance token that also partially collateralizes the system. As long as there is a buyer on the open market for FXS, FRAX should be able to maintain its peg."
- From DeFi Weekly (28-1-2021):
"The FRAX model claims to be under-collateralised but rather a more accurate description is that it’s algorithmically collateralised through a two token system. Here’s how it works:
- The system starts off being 100% collateral based, which means that in order to mint FRAX you need 1 USDC per FRAX. However, if this is anything below 100% then an equivalent amount of FXS (Frax Shares) need to be deposited. Think of it that rather than depositing 1 USDC you would deposit 0.9 USDC and $0.10 worth of FXS. It’s not really under-collateralized since you still need to deposit at least $1 of value, however it isn’t over-collateralized.
- Now, as time goes on, if the price of FRAX is above $1, then the collateral ratio reduces by 0.25% each hour. If the price of FRAX is below $1 then the collateral ratio increases by 0.25% each hour.
- The net result is that the system can become something like 90% collateralized meaning only 90% of USDC needs to be deposited and 10% of FXS per FRAX minted.
However, this isn’t what helps FRAX maintain its peg. The crucial part here is that anyone who buys and holds FRAX can redeem it for $1 worth of USDC and/or FXS. This means that the peg can be a lot stronger since arbitragers can buy cheap FRAX if it goes below $1 and redeem it for $1 of real collateral. Similarly if the price of FRAX goes above $1 then arbs can come in and mint 1 FRAX for $1 and then sell it for $1.10 (or whatever the above-peg price is)."
"FRAX is unique; it is the most central bank-like of algorithmic stablecoins I have seen. If you take a real central bank, most of their assets are other sovereign currencies. Similarly, the assets on FRAX’s balance sheet are other stablecoins. In crypto, this might seem like a strange design choice. But also like a true central bank, FRAX is able to adjust its collateralization level according to the demand for its own currency. When there is more demand for FRAX, the system can run looser, and when demand wanes, it can tighten. Like with Seigniorage Shares, the money supply of Frax is elastic. When demand for the FRAX stablecoin increases, the system can expand the money supply beyond the total collateral in the system. But unlike with Seigniorage Shares, FRAX can also tighten monetary policy when market conditions call for discipline.
But perhaps the most interesting element of Frax is its Algorithmic Market Operations (AMOs). Frax allows anyone to propose an AMO strategy via governance (a la Yearn), and if the strategy is good for the Frax ecosystem, it is free to be adopted.
One such AMO involves minting FRAX into a Curve pool to strengthen the peg. (This is essentially like the central bank minting unbacked currency to defend the peg in the market.) Another example might be minting FRAX to lend on Compound to improve its liquidity, and so on. If it is profitable, or accomplishes a socially useful goal, it can be minted just-in-time and funded via an AMO. But if that AMO overreaches and triggers a decrease in confidence in FRAX (as measured by FRAX going below the peg), the AMO can automatically pull back using the same predefined algorithm."
Fees
Upgrades
- From Yield Farmer (14-3-2021):
"Unveiled its V2 system, which involves underpinning the FRAX stablecoin with + zero-coupon bonds."
Staking
Liquidity Mining
- From Yield Farmer (16-1-2021):
"Has launched a liquidity mining campaign centered around its FXS governance token."
Scaling
Interoperability
Other Details
Oracle Method
- From DeFi Safety (28-2-2022):
"The protocol's oracle source is documented at this location. The contracts dependent are identified. There is relevant software function documentation. This protocol documents front running mitigation techniques. This protocol documents flashloan countermeasures at this location."
Privacy Method
Compliance
Their Other Projects
Roadmap
- Can be found [Insert link here].
Usage
Projects that use or built on it
Competition
Pros and Cons
Pros
Cons
- From DeFi Weekly (28-1-2021):
"While the FRAX model does move in the right direction, it still has a few major problems:
- Right now FRAX only supports USDC meaning it’s a wrapped for USDC in some ways. FRAX v2 attempts to add volatile currencies through the introduction of FRAX bonds.
- FRAX can’t be used effectively for leverage (like MakerDAO or ARCx) since depositors have no guarantee that they’ll receive their exact amount and type of collateral back. This may be okay assuming FRAX aims to be a primary MoE exchange coin. However, like others, the main beneficiaries of the FRAX stablecoin are the FXS holders who will have increasing power to mint FRAX with their FXS.
The last point around early holders is something I think that plagues all algorithmic stablecoins, and that’s the fact that they enrich early holders at the expense of later holders. Ultimately this will hinder their ability for real adoption since the late adopters will become the early adopter’s exit liquidity."
Team, Funding, Partners
Team
- Full team can be found [here].
- From DeFi Safety (28-2-2022):
"Many team members are public and cross-reference their employment."
Funding
"Frax recently closed a strategic round, which was led by us at Dragonfly Capital, with participation from Electric Capital, Robot Ventures (Robert Leshner & Tarun Chitra), Balaji Srinivasan, and Stani Kulechov."
Partners
(:
Knowledge empowers us all and will help us get closer to the decentralised world we all want to live in!
Making these free wiki pages is fun but takes a lot of effort and time.
If you have enjoyed reading, tips are appreciated :) This will help us to keep expanding this archive of information.
ETH tip address: 0x83460bE5F218b1520B69D702cE60A1DE37dD8E31
Also check out my CoinTr.ee for more of my content.