Difference between revisions of "Frax Finance (FRAX)"

From CryptoWiki

m (1 revision imported)
Line 4: Line 4:
*Started in / Announced on:
*Started in / Announced on:
*[[Mainnet]] release:
*[[Mainnet]] release:
*[https://app.frax.finance/ Frax Finance] is a [[stablecoin]] which that blends and leans on elements from both collateralized and [[Elastic Supply Tokens|algorithmic]] systems.  
*[https://app.frax.finance/ Frax Finance] is a [[stablecoin]] which that blends and leans on [[elements]] from both collateralized and [[Elastic Supply Tokens|algorithmic]] systems.  


==History==
==History==
==Audits & Exploits==
==Audits & Exploits==


*[[Bug bounty]] program can be found [insert here].
*Frax [https://docs.frax.finance/smart-contracts/miscellaneous#frax-bug-bounty offers] up to $10m with a static [[bug bounty]] program (28-2-2022).
*Scored [https://www.defisafety.com/pqrs/353 81%] on [[DeFi Safety]] (28-2-2022):
[[Contract]] FRAX is [https://etherscan.io/address/0x853d955aCEf822Db058eb8505911ED77F175b99e#analytics extremely active]. There is full coverage of deployed [[contracts]] in their software function [https://docs.frax.finance/smart-contracts/oracle#chainlink 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]]], [https://www.certik.com/projects/fraxfinance before launch]. 3 major findings were not corrected.
 
With the [https://t.me/c/1453353094/7585 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===
===Bugs/Exploits===
==Governance==
==Governance==
===Admin Keys===
===Admin Keys===
* [https://www.defisafety.com/pqrs/353 From] [[DeFi Safety]] (28-2-2022):
''"[[Admin Key|Admin control]] information was clearly documented at this [https://docs.frax.finance/smart-contracts/governance#access-control location]. The relevant contracts are not identified. Ownership is clearly indicated in this [https://docs.frax.finance/smart-contracts/governance#timelock location]. [[Smart contract]] change capabilities are not identified. This protocol dose not have a pause control, and this is [https://docs.frax.finance/smart-contracts/frax#accesscontrol-inherited identified]. This protocol's [[timelock]] documentation can be found at this [https://docs.frax.finance/smart-contracts/governance#timelock location]. The timelock is 48 hours."''
===DAO===
===DAO===
===Treasury===
===Treasury===
Line 21: Line 32:
===Utility===
===Utility===


* [https://yieldfarmer.substack.com/p/defi-pulse-farmer-24?token=eyJ1c2VyX2lkIjoxMzk3OTAwLCJwb3N0X2lkIjozMTU4ODUyNiwiXyI6ImM5eFJuIiwiaWF0IjoxNjEwOTk0NDA0LCJleHAiOjE2MTA5OTgwMDQsImlzcyI6InB1Yi0zODQ1MSIsInN1YiI6InBvc3QtcmVhY3Rpb24ifQ.QPzgXpUcQkzDZObFXEqHcQu_fP Has] the FXS [[governance]] token.
* [https://yieldfarmer.substack.com/p/defi-pulse-farmer-24?token=eyJ1c2VyX2lkIjoxMzk3OTAwLCJwb3N0X2lkIjozMTU4ODUyNiwiXyI6ImM5eFJuIiwiaWF0IjoxNjEwOTk0NDA0LCJleHAiOjE2MTA5OTgwMDQsImlzcyI6InB1Yi0zODQ1MSIsInN1YiI6InBvc3QtcmVhY3Rpb24ifQ.QPzgXpUcQkzDZObFXEqHcQu_fP Has] the FXS [[governance]] [[token]].


===Other Details===
===Other Details===
Line 33: Line 44:
==Technology==
==Technology==


*[[Whitepaper]] can be found [insert here].
*[[Whitepaper]] can be found [https://docs.frax.finance/ here].
*Code can be viewed [insert here].
*Code can be viewed [https://github.com/FraxFinance here]. [https://www.defisafety.com/pqrs/353 From] [[DeFi Safety]] (28-2-2022):
''"At 479 commits, it's clear Frax's development history is as moving as it is inspirational."''


=== Implementations ===
=== Implementations ===


*Built on: [[Ethereum]] and [[Avalanche (AVAX)|Avalanche]] ([https://www.hedgeweek.com/2021/03/09/296885/hybrid-usd-stablecoin-frax-expands-avalanche 9-3-2021] expexted to be done on 20-3-2021).
*Built on: [[Ethereum]] and [[Avalanche (AVAX)|Avalanche]] ([https://www.hedgeweek.com/2021/03/09/296885/hybrid-usd-stablecoin-frax-expands-avalanche 9-3-2021] expected to be done on 20-3-2021). [https://www.defisafety.com/pqrs/353 According] to [[DeFi Safety]] also on (28-2-2022) [[Binance|BNB Chain]], [[Fantom (FTM)|Fantom]], [[Moonriver (MOVR)|Moonriver]], [[Polygon (MATIC)|Polygon]], [[Solana (SOL)|Solana]], [[Aurora (EVM on NEAR)|Aurora]], [[Harmony (ONE)|Harmony]] and [[Optimism]].


===How it works===
===How it works===
Line 63: Line 75:
* [https://medium.com/dragonfly-research/a-visual-explanation-of-frax-bcce72c1730f From] [[Dragonfly Capital Partners|Dragonfly]] Research, which is an investor (16-7-2021):
* [https://medium.com/dragonfly-research/a-visual-explanation-of-frax-bcce72c1730f From] [[Dragonfly Capital Partners|Dragonfly]] Research, which is an investor (16-7-2021):


''"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.''  
''"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 [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 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."''
Line 88: Line 100:
===Other Details===
===Other Details===
==Oracle Method==
==Oracle Method==
* [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]."''
==Privacy Method==
==Privacy Method==
==Compliance==
==Compliance==
Line 104: Line 121:
* [https://defiweekly.substack.com/p/the-new-age-of-stablecoins?token=eyJ1c2VyX2lkIjoxMzk3OTAwLCJwb3N0X2lkIjozMTgxNDg2OSwiXyI6IlIzVVdsIiwiaWF0IjoxNjExOTgyMzkxLCJleHAiOjE2MTE5ODU5OTEsImlzcyI6InB1Yi01NDAyIiwic3ViIjoicG9zdC1yZWFjdGlvbiJ9.TWyg9XmruXlMxyVwohm933G From] [[DeFi Weekly]] (28-1-2021):
* [https://defiweekly.substack.com/p/the-new-age-of-stablecoins?token=eyJ1c2VyX2lkIjoxMzk3OTAwLCJwb3N0X2lkIjozMTgxNDg2OSwiXyI6IlIzVVdsIiwiaWF0IjoxNjExOTgyMzkxLCJleHAiOjE2MTE5ODU5OTEsImlzcyI6InB1Yi01NDAyIiwic3ViIjoicG9zdC1yZWFjdGlvbiJ9.TWyg9XmruXlMxyVwohm933G From] [[DeFi Weekly]] (28-1-2021):


''"While the FRAX model does move in the right direction, it still has a few major problems:''
''"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.''
# ''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 [[ARC (ARCx)|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.''
# ''FRAX can’t be used effectively for leverage (like [[MakerDAO]] or [[ARC (ARCx)|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|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]]."''
''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, Funding, Partners==
Line 115: Line 132:


*Full team can be found [here].
*Full team can be found [here].
*[https://www.defisafety.com/pqrs/353 From] [[DeFi Safety]] (28-2-2022):
''"Many team members are public and cross-reference their employment."''


===Funding===
===Funding===
Line 120: Line 139:
* [https://medium.com/dragonfly-research/a-visual-explanation-of-frax-bcce72c1730f From] [[Dragonfly Capital Partners|Dragonfly]] Research, which is an investor (16-7-2021):
* [https://medium.com/dragonfly-research/a-visual-explanation-of-frax-bcce72c1730f From] [[Dragonfly Capital Partners|Dragonfly]] Research, which is an investor (16-7-2021):


''"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]]."''
''"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===
===Partners===
Line 131: Line 150:
Making these free wiki pages is fun but takes a lot of effort and time.
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.
If you have enjoyed reading, tips are appreciated :) This will help us to [[keep]] expanding this archive of information.


[[ETH]] tip [[address]]: 0x83460bE5F218b1520B69D702cE60A1DE37dD8E31
[[ETH]] tip [[address]]: 0x83460bE5F218b1520B69D702cE60A1DE37dD8E31

Revision as of 10:35, 28 March 2022

Basics

History

Audits & Exploits

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

Governance

Admin Keys

"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

Other Details

  • Leverages a two-token model to create an algorithmic, partially-collateralized stablecoin.

Stablecoin

  • Has the FRAX stablecoin.

Technology

"At 479 commits, it's clear Frax's development history is as moving as it is inspirational."

Implementations

How it works

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

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

"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:

  1. 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.
  1. 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.
  2. 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

"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

"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

"While the FRAX model does move in the right direction, it still has a few major problems:

  1. 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.
  2. 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

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