Proposal to add MaticX to Aave v3 Polygon Market

Summary

Stader proposes addition of MaticX as collateral to Aave v3 Polygon market. Here’s why Matic X will be a strong addition to the Aave v3 Polygon market:

  1. About Staderlabs: MaticX is built by Staderlabs, a multi-chain staking infrastructure provider with ~900mn $ in assets with 40k+ users staking with us across Terra, Polygon, Fantom and Hedera
  2. About MaticX:
    a. MaticX is an ERC20 token that represents the user’s staked assets and accrued rewards. Matic X increases in value relative to Matic as staking rewards accrue
    b. MaticX has been audited by top security audit firms Halborn and Immunebytes
  3. Liquidity for MaticX:
    a. MaticX has high liquidity on Polygon, with ~3.7 mn$ of liquidity for our Matic <> MaticX pool on Quickswap, within days of LP launch. LPs on more DEXs coming in the next couple of weeks
  4. Benefits to AAVE and Polygon:
    a. With MaticX, Matic holders can participate in both staking and Defi, unlocking new liquidity from staking for Defi, including Aave
    b. Matic holders will be able to promote decentralization of Polygon by staking with multiple high performing validators
    c. We expect staking participation of the community to increase as we launch a solution to stake directly on the Polygon mainnet in the coming fortnight
  5. Proposed parameters for MaticX:
    a. Max LTV has 55%
    b. Liquidation threshold of 60-65%
    c. Liquidation penalty of 10-15%

Background about Stader

StaderLabs is a multi-chain staking infrastructure provider. We are live on 4 blockchains including Terra, Polygon, Fantom and Hedera.

Within a few months of launch, Stader has more than 900 Mn USD of total assets staking on the platform.

  1. ~$850 M+ Luna staked
  2. $65 M+ HBAR staked
  3. Over 40k+ users staking with Stader smart contracts

Adding MaticX to Aave v3 Polygon market

MaticX is an ERC20 token that represents a user’s share of the staked Matic assets with Stader. It is a token that increases in price as the staked MATIC accrues staking rewards and these rewards are compounded i.e. MaticX simply becomes more expensive over time relative to MATIC.

Safety and security are paramount for Stader and we do multiple audits of our smart contracts to safeguard user’s funds. MaticX contracts have been audited twice by reputed audit firms Halborn and Immunebytes. Here are the links to the two Audit Reports: Report 1 & Report 2.

You can explore Stader’s Liquid Staking for Polygon by going over to the Stader Dapp: https://polygon.staderlabs.com/liquid-staking/maticx

MaticX is available on Polygonscan at the address: 0xfa68fb4628dff1028cfec22b4162fccd0d45efb6

MaticX Liquidity Pools

  1. The MaticX <> Matic LP is live on Quickswap
  • LP size ~3.7 Mn USD (within a few days)
  • Expect to significantly increase with dual rewards available for the pool
  1. We are launching staking on the Polygon Mainnet in a few days and this will amplify the MaticX TVL and the LP size manifold (Polygon’s staking protocol is native to Ethereum, so Stader Polygon v1 only supports staking Matic on Ethereum.)

  2. We will also be creating LPs, and incentivising them across other Polygon DEXs

Benefits to Polygon & Aave Community

We believe MaticX will be a great addition to Aave v3 Polygon markets as it will unlock several borrowing use cases including leveraged staking, borrowing other assets with MaticX and potentially several DeGen strategies.

Stader’s selection of validators is transparent (here) and centered around generating highest staking returns for delegators and encouraging decentralization of Polygon.

  1. High performing validators (100% of last 200 checkpoints, >98% checkpoints in last 90 days)
  2. Commissions (<=5%)
  3. Preference to lower voting power

We expect MaticX to continue to grow in demand as we integrate across more ecosystem partners and also increase overall staking participation in Polygon (currently only 14,000 wallets of total of 140m active wallets stake on Polygon). Aave would be one of the first protocols to offer significant lending offerings for MaticX driving a lot of Matic community to Aave.

Parameters

Based on the updated WMATIC risk parameters, we propose the following risk parameters for MaticX as MaticX is backed by Matic staked via Stader’s contract.

  1. Max LTV of 55% for MaticX (compared to 65% for WMATIC)
  2. Liquidation threshold of 60-65% for MaticX (compared to 70% for WMATIC)
  3. Liquidation penalty of 10-15% for MaticX (compared to 10% for WMATIC)

We would like to hear feedback and update any specific information/ parameters as suggested by the Polygon and Aave community.

Update (July 1, 2022)

Adding a small section to update on all the developments from the time of original proposal being published.

  1. Traction: More than 13 million Matic by 1.4k+ unique wallets already staked with Stader for MaticX. We launched the ability for Polygon community to stake directly on Polygon in early May without having to bridge to Ethereum enabling cheaper, faster transactions and have seen strong adoption
  2. Liquidity: We have ~10 mn $ in liquidity across DEXs, with a ~5.4 mn $ on Balancer metastable pool (suited for low slippage) On Polygon, currently in Top 2 pools by liquidity size on Balancer Polygon
  3. Chainlink price feed: Our calculated price feed for MaticX from Chainlink is in testing phase and expected to be live in the week starting July 11
  4. Defi and Lending: On lending, we have ~1 mn $ of MaticX already being lent on Polygon Defi (primarily on Meshswap single sided lending). We have also forged strong partnerships across Polygon Defi, including
    a) Balancer Labs, Quickswap, Meshswap in DEXs,
    b) Beefy Finance, Autofarm, Harvest Finance in yield optimizers, Meshswap and
    c) Meshswap, Market XYZ in lending
  5. MaticX can be redeemed for the underlying Matic with an unbonding period of ~3 days (80 checkpoints as per Polygon native staking contract) mitigating depeg risks

Look forward to bringing MaticX to the AAVE and Polygon communities.

Note: Stader’s overall now stands around 50 mn $ compared to the 900 mn $ at the time of original proposal due to the unfortunate Terra crash, where a large % of our TVL was.

5 Likes

Liquid staked assets are the future of DeFi, and MaticX will be enormously beneficial to the entire Polygon ecosystem. The growth of MaticX starts with Aave v3 addition – let’s see this happen!

Totally support this proposal, stader labs is a tier 1 organization in DeFi and wholly support Aave adding MaticX

Liquid-staked assets are the future of Defi as @Cryptoawaken said.

That being said, I do not understand the choice of Quickswap for the main liquidity pool, Polygon has a wide range of more efficient stableswap to host maticX liquidity (Curve, Uni V3, Balancer, upcoming dystopia), a minimum of 30 bps both ways will hurt the attractivity of MaticX and is potentially dangerous for Liquidations events, also a much larger liquidity is needed to reduce slippage without a tight stableswap curve.

With current LP and available liquidity I would only support an extremely conservative insolation mode for this onboarding

To my knowledge, MaticX does not have a Chainlink Price feed, this a mandatory infrastructure requirement to consider an onboarding into Aave.

2 Likes

the reason for selecting quickswap and 30bps is because chainlink does not pull its data feeds from other dexes on polygon. dystopia is in talks with chainlink to pull data for price feeds and hopefully itll be done soon.

chainlink not being able to pull price feeds from dexes other than quickswap hampers the growth and development of polygon defi and builds an economic moat and monopoly for quickswap as all new stalecoins and liquid staked tokens are forced to create pools there. the univ2 curve hurts new stablecoins and liquid staked tokens that do not have sufficient liquidity as it is bad for the peg and hence it would be of great benefit for the entire community if they pull data from dystopia

maybe the aave team can help convince chainlink to explore dystopia and other dexes

1 Like

MaticX would be a solid asset. Not having Chainlink seems like a bad reason to avoid listing.
Support Aave helping to shill addition of dystopia, Stader tokens

Agreed. Super key for interoperability - having this on Aave v3 just makes sense and will increase the number of use cases for MaticX, bringing in TVL

Hi All :wave:

Governance House will be preparing a risk assessment to list the maticX asset on Aave v3 Polygon market. In other news a Chainlink Oracle is being prepared to support the asset listing.

Matthew Graham

1 Like

Hi Everyone :wave:

Please see below our risk assessment for maticX. Please do comment on the risk assessment.

maticX - Aave v3 Polygon Market Risk Assessment

General

Stader is building a native staking smart contract platform spanning multiple networks that enables users to develop staking-related applications on top of Stader infrastructure. Stader’s staking solution for the Polygon network is maticX.

maticX is an ERC20 receipt token which represents staked MATIC and a portion of the staking rewards. In crafting maticX, Stader carefully selects validators based upon performance, safety, decentralisation and the commission terms to ensure users receive the best user experience. Of the top 100 validators, the top 6 make up more than 50% of the staked MATIC. As a result, Stader has elected to work with validators who have less than 1% of the total staked MATIC market.

At the time of writing, 30/07/2022, the data in the table below provides insight into the maticX’s state on Polygon Network.

Note:

  1. Subset of Ethereum circulating supply which has passed through the bridge
  2. Smart Contracts such as liquidity pools are counted as 1 in this figure
  3. Bridge contracts feature in this figure

maticX token on Polygon represents a claim on maticX deposited into the Ethereum to Polygon bridge contract. The maticX token on Ethereum represents a claim to MATIC token deposited into the MATIC staking contract. Thus, maticX on Polygon represents stake MATIC on Ethereum via the bridge.

maticX Ethereum Network: 0xf03A7Eb46d01d9EcAA104558C732Cf82f6B6B645
Ethereum to Polygon Bridge: 0x40ec5B33f54e0E8A33A975908C5BA1c14e5BbbDf
maticX Polygon Network: 0xfa68fb4628dff1028cfec22b4162fccd0d45efb6

maticX Smart Contract Risk

MATIX has been audited by ImmuneBytes and Halborn. An extract from the Halborn Audit “Halborn identified some security risks that were mostly addressed by Stader Labs team.” Only two informational findings were not attended to and all non informational risks have been addressed.

From the Immunebytes audit the following extract summarises the audit process “Stader Labs team has Acknowledged/fixed the issues based on the auditor’s recommendation.” The Immunebytes engagement finished on the 26th April 2022 and recommended Stader run “a bug bounty program as a complement to this audit is strongly recommended.”

Stader launched a bug bounty program of up to $1M for critical bugs on the 25th April 2022 which is still ongoing to this day. The details of the program can be found here and to date no bugs have been found.

Polygon Bridge Risk

The Polygon <> Ethereum bridges have an outstanding $2M bug bounty on Immunefi. Further information on the bridges can be found here. As the Polygon market already utilises receipt tokens from the Ethereum bridge, deeper analysis has not been performed into the security on the bridge contracts administered by the Polygon community.

maticX Counterparty Risk

maticX is the core contract which acts as a receipt tokend for staked MATIC. maticX can be acquired on Polygon and mainnet. Both means of acquiring maticX utilise the same contract address on Polygon. maticX is a non-rebasing token, which means that the amount of tokens in the user’s wallet is not going to change. Over time, while rewards are accumulate, the value of the maticX tokens increase relative to MATIC.

Administration

The contract is governed by a 3 of 5 multi-sig with named signers and majority are not Stader core team, like DefiDad and Aishwary from Polygon Foundation. The details can be found here.

The multi-sig mentioned above administers over the following parameters:

  • setBotRoleAdmin Admin for off-chain bots to update the exchange rate of maticX periodically
  • setFeePercent Set the Stader’s commission of the staking rewards. Set to 10% currently
  • setInstantPoolOwner Set to Stader’s instant pool owner to offer maticX at a cheaper gas fee
  • setValidatorRegistry Set the address to point to the contract wrapper for validator operations
  • setFxStateRootTunnel Set the Polygon root tunnel used for communication of exchange rate of maticX <> Matic from Ethereum onto Polygon
  • setVersion Used for marking a version of code
  • PauseContract Pause deposits, withdrawals, claims. Only meant to be used in critical situations
  • Upgrade Contracts Only meant to be used in critical bug fixes

Fees generated by maticX are routed to the Stader Treasury wallet which is a Gnosis Safe controlled by a 2 of 3 multisig consisting of members of the Stader core team. 2 signers of the Treasury are also on the maticX product multisig.

Deposits

Users are able to stake MATIC natively on Polygon up to the threshold of 1.55M wMATIC per refill. It takes around 3 hours to refill the contract when Users have deposited MATIC. Users will receive maticX in the next block upon completing this transaction. For MATIC holders on Ethereum there are no limitations on how many units of MATIC can be staked each day. Upon receiving maticX on Ethereum users are required to bridge the asset to Polygon Network. Bridging from Ethereum to Polygon Network is expected to take around 7-8 mins.

Withdrawals

Withdrawals for maticX range from instant up to 3 days for Users. Users can effectively unstake maticX in one of three ways detailed below:

  • Unstake maticX directly on Polygon which takes 50 hours.
  • Bridge maticX to Ethereum and unstake which takes 50 hours.

The 3 day withdrawal period is lower than some alternatives on the market and is expected to support a tighter secondary market spot price relative to the fundamental value of the receipt token’s claim.

maticX Market Risk

Oracle Details

Chainlink Oracle: Calculated maticX/USD Oracle 0xfccff2a3E9d52d655860647aEdBD133929f988e6

Chainlink has developed an oracle feed for maticX/USD on Polygon that is calculated from the MATIC/USD oracle and the staked MATIC yield derived from the POS network. The oracle does not utilise maticX decentralised or centralised exchange liquidity spot pricing. The MATIC/USD Chainlink oracle derives its pricing feed from the spot trading price of MATIC on decentralised and centralised exchanges.

This type of oracle is beneficial for users seeking to use maticX as collateral, especially when recursively depositing maticX and borrowing MATIC, as the price feed is independent of spot market price fluctuations. However, for liquidators this oracle may diverge from spot pricing which means some loans risk being miss priced in terms of valuing the collateral. The unstaking withdrawal period is around 2-3 days. A key benefit for users is Stader withholds some liquidity that enables Users to redeem MATIC near instantly via their User Interface (UI). At the time of writing, around 225k maticX units could be exchanged for MATIC on Polygon via Stader’s UI.

When considering the price of maticX/MATIC on decentralised exchanges on Polygon, this dune chart shows the hourly data, here. This data period spans the stETH/ETH price volatility and the UST to zero events of May/June 2022. During this challenging time for markets and the spot price of maticX held up well.

Liquidity Details

The table below summarises the status of maticX liquidity at the time of writing. Using 1inch Networks Aggregation Protocol, at the time a $5.9M of wMATIC position can be converted to maticX for 5% price impact with most of the liquidity sourced from the Balancer v2 pool.

References:

Balancer v2 Dune
Quickswap Dune
Meshswap

Of the 334 depositors into the Balancer liquidity pool 332 have deposited into the Balancer Gauge to earn BAL rewards. 25.6% of the funds deposited into gauge is by one address which is labelled Sphere Finance Deployer on Polyscan. The next largest depositor is 13.35% of the gauge’s deposits.

99.3% of the liquidity in the $5.1M Quickswap pool has been deposited into the staking contract to earn an APY 11.62%. The three largest liquidity providers in the exchange pool make up 62.2% of the total pool’s liquidity. The largest depositor in the pool makes up 31.9% of the liquidity.

The liquidity within the main liquidity pools is largely concentrated within a handful of wallets. This represents a risk to lending markets where liquidators rely on this on-chain liquidity to execute liquidations. Liquidators could unstake maticX which incurs a 3 day wait time which carries the risk of the asset price exposure changing during the unstaking period.

As of 30th July 2022 for maticX(wMATIC) using Coingecko data which commences 3rd May 2022:

As with stETH and sAVAX, this proposal recommends listing maticX with borrowing disabled.

Comments:

Having recently obtained a Chainlink oracle, maticX can be listed on Aave v3 on Polygon. maticX can be added as collateral in Isolation Mode with a Supply Cap in place. A Supply Cap of around $6M is suggested which represents half the market capitalisation of maticX on Polygon and also approximately the value of a trade with 5% price impact via 1inch’s aggregator at the time of writing. The Supply Cap should be revised to prevailing liquidity conditions.

The initial listing risks parameters for maticX are the same as those proposed for stMATIC with a revised lower supply cap reflecting the lower liquidity profile.

Given users may recursively strategy of depositing maticX, borrowing matic, swapping/staking it for maticX and then depositing maticX into Aave’s lending pool again, an E-Mode should be created between maticX and MATIC. The Supply Cap is intended to ensure there sufficient maticX liquidity remains across decentralised exchanges, as the strategy has the effect of transferring liquidity from exchange liquidity pools into lending pools. With a calculated oracle, the risk of being liquidated is lower and therefore it is expected the leverage strategies will be more aggressively pursued than the stETH strategy on Aave v2 on Ethereum.

The following Isolation and Efficiency Mode parameters would be a good starting place based upon current market conditions:

Supply Borrow Caps + eMode Parameters

The Efficiency Mode (eMode) parameters are a balance of used for other applications like sAVAX listing on the Avalanche market and for Stablecoins on Polygon.

Matthew Graham

5 Likes

Sounds good and comprehensive risk assessment. Looking forward to using MaticX in Aave.

1 Like

Hi Everyone :wave:

We have submitted proposal number 100 to list MaticX on the Aave v3 Polygon Pool.

MaticX is now live for voting :partying_face:

Please do head across and show support.

Aave - Open Source Liquidity Protocol

Noticed the BGD assessment shows a simulation of the Polygon transaction fails: seatbelt-for-ghosts/100_fx_0.md at main · bgd-labs/seatbelt-for-ghosts · GitHub

Didn’t have a chance to check yet in detail.

That said the failing seatbelt is expected.
Seatbelt works by executing the proposal on top of a current fork.

MaticX payload is relying on “matic correlated” eMode to exist. This mode doesn’t yet exist as it’s created in the stMATIC proposal which passed, but can be executed earliest tomorrow at Countdown to Unix Time 1,663,167,782 on polygon due to 2d delay.

After that time I expect the seatbelt to succeed.

4 Likes