Add Market ETH on Optimism

Summary

Compound Growth Program proposes the addition of an ETH market to Compound V3 on Optimism

Motivation

In line with our commitment to grow Compound’s presence as the premier lending protocol on Optimism, the addition of an ETH market on Optimism will provide users an additional avenue to utilize their assets through Compound. The ETH market will be the third market on Optimism following the USDC Market and the upcoming USDT Market.

Point of Contact: @bryancolligan @sharp

Proposed Collateral

We propose adding the following assets as collateral for the market

Ticker Project Name Project Website
wstETH Lido https://lido.fi/
rETH RocketPool https://rocketpool.net/
cbETH CoinBase Wrapped Staked ETH https://www.coinbase.com/cbeth

We invite the community to provide input on these assets and suggest any additional collateral assets.

Relevant Documents and Links

Next Steps

We invite the community to consider this application for listing the ETH market and welcome suggestions in this direction. After getting suggestions and risk recommendations from Community members, we will kickstart the coding process for the market.

Additionally, we look forward to the community’s input on an appropriate

Collateral Factor

Reserve Factor

Borrowing Limit

3 Likes

Great idea to have ETH market on Optimism. Looking forward to support from the community and configurations from Gauntlet!

4 Likes

Kenneth here, I’m a Defi Protocol Relations contributor at Lido DAO.

Personally am excited to see this market getting deployed on Optimism especially since this would create another market for the stronger use cases of stETH - leveraged staking.

Looking forward to see this market get pushed through!

2 Likes

A point worth mentioning is that cbETH may not have sufficient liquidity on Optimism atm.

Would also additionally, like to suggest sfrxETH that has comparable liquidity to rETH. An analysis from @Gauntlet will make things clearer on the question of inclusion of sfrxETH.

1 Like

[Gauntlet] Optimism v3 WETH Comet Listing

Simple Summary

Below are the initial parameter recommendations for the Optimism v3 WETH Comet:

Risk Parameters

Asset Collateral Factor Liquidation Factor Liquidation Penalty Supply Cap
rETH 90% 93% 3% 470 ($2M)
wstETH 88% 93% 3% 1,300 ($5.8M)
WBTC 80% 85% 10% 60 ($4.2M)

Gauntlet advises against listing cbETH within the WETH Comet due to its limited on-chain circulating supply, totaling 84 cbETH on Optimism at the time of this forum post. Gauntlet reviewed sfrxETH and does not recommend listing the asset until DEX liquidity improves. The liquidity of sfrxETH is centralized on the Beethoven Exchange, with a WETH liquidity path showing 20% slippage at $1M.

sfrxETH DEX Liquidity

Dex Category Pool address TVL(mil)
beethoven_x_optimism 0x5f8893506ddc4c271837187d14a9c87964a074dc 4.95
velodrome-finance-v2 0xff5318f81dd791e92d51b8a54fa3538832d2890d 0.79
velodrome 0xeb676ae691df237ac09a0f7410123a714d84afb3 0.02

weETH and rsETH are presently circulating on the OP chain, albeit with very low liquidity. Gauntlet will continue monitoring these LRT markets and recommend their addition once liquidity conditions improve.

Gauntlet recommends including WBTC in this Comet listing. As evidenced by our v2 markets, 50% of WETH borrowing is backed by WBTC collateral. This statistic underscores the demand among WBTC holders to borrow WETH, indicating significant utility and usage.

Furthermore, WBTC exhibits a high correlation with WETH, boasting a correlation ratio of 0.98. This correlation creates an optimal scenario for attaining higher leverage while mitigating risk.

Storefront Price Factor: 70%

Gauntlet recommends keeping the Store Front Price Factor at the same value as the Ethereum v3 WETH Comet.

Target Reserves: 5000

After Gauntlet’s forum post analyzing Target Reserves, Gauntlet recommends the following Target Reserves.

IR Curve Parameters

IR Curve Parameters

Gauntlet recommends the following IR parameters for the WETH Comet:

Parameter Recommended Value
Annual Supply Interest Rate Base 0
Annual Supply Interest Rate Slope Low 0.0185
Supply Kink 0.85
Annual Supply Interest Rate Slope High 1
Annual Borrow Interest Rate Base 0.01
Annual Borrow Interest Rate Slope Low 0.014
Borrow Kink 0.85
Annual Borrow Interest Rate Slope High 1.15

The chart above demonstrates that the generation of Comet WETH reserves will be positive when utilization exceeds 61%.

Considering the market equilibrium assumption of reaching 85% utilization, the following chart forecasts annualized reserves corresponding to various borrowing amounts. At $6.8M borrowed, the Comet would generate annual reserves of $23k.

Incentive Parameters

Our COMP rewards recommendations are designed to offer appealing distribution APRs when the comets are first launched and when supply caps are highly utilized.

Gauntlet is recommending higher supply rewards to incentivize a more significant inflow of supply tokens into the protocol. This is important in the early stages of protocol growth since WETH supply is required before borrowers can join. Daily COMP rewards are subject to change as TVL rises and the markets evolve.

WETH Comet Incentives

Daily COMP Supply Rewards Daily COMP Borrow Rewards
4 3

Here’s an update on the current COMP rewards structure in Arbitrum v3 WETH:

  • Daily COMP Supply Rewards: 4 COMP
  • Daily COMP Borrow Rewards: 3 COMP

Assuming full usage of supply caps and current liquidation factors, the total borrowing power would be $10.8M.

Here’s a breakdown based on our assumptions:

  • Borrow Usage (80%): This leads to a borrowing volume of $7.5M.
  • Utilization (85%): Corresponding to a supply volume of $9M.

With the above utilization and the present Interest Rate curve:

  • Supply APR: 1.57%
  • Borrow APR: 2.19%

Given the current COMP price of $60:

  • Supply Distribution APR: .98%
  • Borrow Distribution APR: .87%

This results in the following Net APRs:

  • Net Supply APR: 2.59%
  • Net Borrow APR: 1.32%

The chart above illustrates the Distribution of Annual Percentage Rates (APRs) across various supply levels, assuming an 85% utilization rate. It’s noteworthy that APRs exceeding 2% will persist until the market’s supply reaches $4M. These incentive distributions are strategically designed to accelerate the WETH Comet. The current projected net APRs are within reasonable ranges.

Next Steps

We welcome community feedback.

2 Likes

Development is the key to success :slight_smile:

1 Like

Deploy and initialize cWETHv3 market on Optimism

PR - Deploy WETH market on Optimism by MishaShWoof · Pull Request #882 · compound-finance/comet · GitHub

Actions

  1. Run Slither. Fails. :x:. Deploy WETH market on Optimism · woof-software/comet@8d4b6b5 · GitHub
  2. Forge test. Success.:white_check_mark: Deploy WETH market on Optimism · woof-software/comet@8d4b6b5 · GitHub
  3. Gas Profiler. Success.:white_check_mark: Deploy WETH market on Optimism · woof-software/comet@8d4b6b5 · GitHub
  4. Scan. Success.:white_check_mark: Deploy WETH market on Optimism · woof-software/comet@8d4b6b5 · GitHub
  5. optimism-weth Scenario. Success.:white_check_mark: Deploy WETH market on Optimism · woof-software/comet@8d4b6b5 · GitHub
  6. Unit tests. Success.:white_check_mark: Deploy WETH market on Optimism · woof-software/comet@8d4b6b5 · GitHub
  7. Eslint. Success.:white_check_mark: Deploy WETH market on Optimism · woof-software/comet@8d4b6b5 · GitHub
  8. Contract linter. Success.:white_check_mark: Deploy WETH market on Optimism · woof-software/comet@8d4b6b5 · GitHub
  9. Deploy. Success.:white_check_mark: Deploy Market · woof-software/comet@f6996e5 · GitHub
  10. Enact migration. Success. :white_check_mark::x: (It ran successfully, but failed as on-chain pushed. That happen before) Enact Migration · woof-software/comet@8d4b6b5 · GitHub

Description we use:

Initialize cWETHv3 on Optimism\n\n

Proposal summary\n\n

Compound Growth Program [AlphaGrowth] proposes the deployment of Compound III to the Optimism network. This proposal takes the governance steps recommended and necessary to initialize a Compound III WETH market on Optimism; upon execution, cWETHv3 will be ready for use. Simulations have confirmed the market’s readiness, as much as possible, using the Comet scenario suite. The new parameters include setting the risk parameters based on the recommendations from Gauntlet.\n\n

Further detailed information can be found on the corresponding proposal pull request, deploy market GitHub action run and forum discussion.\n\n\n

Proposal Actions\n\n

The first action bridges 10 ETH as seed reserves from Mainnet Timelock to Optimism L2 Timelock using OpL1StandardBridge.\n\n

The second action sets the Comet configuration and deploys a new Comet implementation on Optimism. This sends the encoded setFactory, setConfiguration and deployAndUpgradeTo calls across the bridge to the governance receiver on Optimism. It also calls setRewardConfig on the Optimism rewards contract, to establish Optimism’s bridged version of COMP as the reward token for the deployment and set the initial supply speed to be 4 COMP/day and borrow speed to be 3 COMP/day. The last two steps are to wrap ETH into WETH and transfer seed reserves into Comet\n\n

The third action updates the ENS TXT record v3-official-markets on v3-additional-grants.compound-community-licenses.eth, updating the official markets JSON to include the new Optimism cWETHv3 market.

@dmitriywoofsoftware

When I called Supply from Etherscan, the following message pops up from MetaMask: “We were not able to estimate gas. There might be an error in the contract and this transaction may fail”

See the latest failed transaction from the Etherscan page of the comet address: TransparentUpgradeableProxy | Address 0xe36a30d249f7761327fd973001a32010b521b6fd | OP Mainnet Etherscan

I approved the comet address in the collateral contract on OP. I was able to call Supply for ETH pool on Arbitrum via Etherscan, so it’s a bit perplexing why it isn’t working on OP. I couldn’t figure out the error from the comet code either.

Sorry if this isn’t the intended way of using the contract. Just thought it’d be cool to directly interact with it. :slight_smile:

Do not worry. The market starts working in a day. It has a delay from Timelock on L2.

Thanks and that makes sense now :slight_smile:

@dmitriywoofsoftware

Sorry for another question, but what’s the difference between:

  1. call allow on an address manager contract and then call invoke on this address manager to perform actions such as supplying/withdrawing collateral/borrowed assets.
  2. call supply and withdraw to supply/withdraw collateral/borrowed assets.

#1 seems to be used for ETH only and #2 used for all other ERC20.

Can I perform collateralizing/borrowing actions in this ETH pool just by calling supply and withdraw instead of allow and invoke? I can’t find allow and invoke in Etherscan.

Thanks!

You are free to ask questions, but I suggest you do it in Discord.

The protocol works only with ERC20 tokens. But what to do if you want to supply ETH, which is a native coin? You should wrap ETH using WETH9 contract, then approve WETH token and supply it. Instead, you can use Bulker (invoke method) to supply ETH. Under the hood, it wraps your ETH into WETH and supplies into the market. Also, Bulker can be treated as multi-call contract. In one transaction you can supply several collaterals, borrow, and even claim COMP rewards which seem like a powerful feature :slight_smile:

Ooooo that’s indeed quite powerful. Thanks a lot!