Thanks, I added a link.
The StETH listing has been a big success, and so I’m excited to see StMATIC might be next.
Could you please provide the details as described in the New Asset Listing Governance Guide. The community needs to understand in detail how StMATIC works and its risks.
I would also like to understand how you calibrated the risk parameters and justify the higher borrowing power than MATIC which has
- Max LTV 65%
- Liquidation threshold 70%
- Liquidation penalty 10%
I am excited to see stMATIC added as collateral on the Polygon market. It would be very complimentary given the recent MATIC risk parameter changes made.
Just following on from @Alex_BertoG, if you would like a hand to prepare a risk assessment or for it to be done for you, please do let me know. We can definitely help out here.
@MatthewGraham Absolutely! You are capable of doing a much more comprehensive risk assessment. I merely wanted to kick off the discussion.
Thank you, Matthew! I’m excited to get this moving forward.
@Alex_BertoG My original parameters were (incorrectly) using stETH parameters. For the time being, I’ve updated them to be more acceptable, applying the relative adjustments between ETH to stETH for MATIC to stMATIC. Ultimately, I’d like to see what Matthew comes up with.
Voicing my support for this initiative, Liquid Staked asset are the future of France, this onboarding has the potential to help both V3 and stMATIC bloom into the Polygon network.
Snapshot vote has been created: Snapshot
Fantastic to see this proposal and the positive support.
Lido Marketing Lead here, just chiming in to say ideally we can drop the terms ‘PoLido’ or ‘Lido for Polygon’ to describe this.
We strongly prefer Lido on Polygon
@AD_1508 Updates made. Thanks!
Thanks for this initiative! Amazing
Jakov from Shard Labs here, very happy to see this proposal live on snapshot already!
Same as AD’s request, please replace the “PoLido” and “Lido for Polygon” with “Lido on Polygon” inside the snapshot vote itself (if it is possible to do it at this point?) @tomuky
Ty ser! Much appreciated
@ShardYaco Unfortunately, can’t edit snapshot proposals. But I do link to this page.
Seems you still havent provided any of the details of the Asset Listing Governance Guide shared above. Without information and risk analysis, how do you expect the community to be able to take an informed decision on the snapshot? You admitted to guessing the parameters you suggested, this is an extremely low security standard for Aave and the liquidity on the protocol
so the risk parameter were never discussed? How to calculate the depeg risk?
stMATIC - Aave v3 Polygon Market Risk Assessment
Smart Contract Risk Counterparty Risk Market Risk Overall Risk
Lido on Polygon is a DAO governed liquid staking protocol for Polygon PoS chain. It allows users to stake their ERC20 MATIC tokens on Ethereum mainnet and immediately get the representation of their share in the form of stMATIC token without maintaining staking infrastructure. Users will get staking rewards and still be able to control their stMATIC tokens MATIC tokens will be delegated across validators that are registered and accepted by the DAO insideLido on Polygon protocol.
At the time of writing, there are 20,566,991.15 units of stMATIC in circulating supply on mainnet, worth about $12,351,259.73 on the 28th May 2022. stMATIC on Polygon represents a claim on the stMATIC on mainnet with the actual asset held in a bridge contract on mainnet. After 60 days of trading, launch date 28th February 2022, there are 15,180,666.449 stMATIC tokens in circulating supply and 25,653 transfers have taken place on the Polygon network.
There are two liquidity pools on Polygon Network, Quickswap and Balancer. Both are wMTAIC/stMATIC pools and there is a combined TVL $15.4m.
stMATIC Smart Contract Risk:
stMATIC has been audited by Oxorio and Shard Labs. An extract from the Oxoirio Audit “As stated in each particular issue, all critical, major and warning issues identified have been correctly fixed or acknowledged by the client, so contracts are assumed as secure to use according to our security criteria.”. The report did recommend further testing on Testnets and that additional audits were performed before deploying into production. The Lido team has communicated that they fixed all the issues, wrote specific tests, deployed them on a testnet before deploying on mainnet.
Oxorio audit can be found here.
Shard Labs internal audit can be found here.
stMATIC Counterparty Risk:
stMATIC is the core contract which acts as a liquid staking pool. The contract is responsible for deposits, withdrawals, minting and burning liquid tokens, delegating funds to node operators, applying fees and distributing rewards. 90% of the staked MATIC rewards go to stMATIC holders, node operators (5%), Lido DAO (2.5%) and the Treasury (2.5%). Staking MATIC via “Lido on Polygon” is near instant, with the user receiving an amount of stMATIC based upon the current ratio between MATIC and stMATIC token. Withdrawals on the other hand can take approximately 9 days to process according to the “Lido on Polygon” documentation.
The stMATIC contract is an ERC20 contract that represents the account’s share of the total supply of MATIC tokens inside the “Lido on Polygon” protocol. Unlike stETH, stMATIC is a non-rebasable token, which means that the amount of tokens in the user’s wallet is not going to change. During time, while rewards are accumulated, the value of stMATIC tokens increase. Therefore, when listing stMATIC as collateral there is no need for a wrapper like there is with wstETH.
“Lido on Polygon” is a protocol that runs on the Ethereum blockchain and it is upgradable. The address that controls the ability to implement day-to-day changes and upgrade the protocol is controlled by a Gnosis Safe with a 3 of 5 multisig signer requirement. The signers are established validators and ecosystem partners who can execute privileged operations. Further details can be found here. In the future we expect stMATIC to be upgraded to v2 which is currently undergoing an audit.
Relevant addresses are linked below:
Mainnet Contract Address:
Mainnet Bridge Address:
Polygon Contract Address:
Balancer v2 Liquidity:
stMATIC Market Risk:
With stMATIC listed as collateral, there is exposure to the oracle price. At the time of writing Chainlink is in the process of creating a calculated stMATIC oracle. It is very strongly recommended that a Chainlink oracle is used to support the stMATIC asset listing. The chainlink oracle for stMATIC is the MATIC/USD Chainlink oracle plus the calculated MATIC/stMATIC conversion rate. The only factor that can influence the conversion rate changes are the new rewards coming into the system from validators as there is no slashing.
There are 361 holders of stMATIC on Polygon of which at least two are smart contracts, being the Balancer v2 BPT gauge and Quickswap’s staking contract, that receive Liquidity Mining rewards. There are 63 LPs in the Balancer v2 pool, of which 85.3% is deposited into the rewards gauge by 324 different wallets. One of these wallets makes up 39.4% of the tokens within the gauge contract. There are 49 LPs in the Quickswap pool, of which 98.9% deposited into the dual staking rewards contract to receive QUICK and LDO rewards. At the time of writing the Quickswap staking contract holds over $5m of user funds. There is some concentration within the liquidity providers for stMATIC on the Polygon Network which if pulled has the potential to affect slippage on swaps.
In the future there is expected to be a Curve pool when Curve v2 launches on Polygon and a Uniswap v3 pool. It is reasonable to expect incentives for liquidity providers and for this to attract new liquidity providers into the market. The introduction of well supported decentralised exchange pools will offer better support and on-chain conditions for liquidating bad debt on the Aave market.
As with stETH and sAVAX, this proposal recommends listing stMATIC with borrowing disabled.
As of 28th May 2022 for stMATIC(MATIC):
30 Day Average Daily Volume: $254.11k ($633.5m)
30 Day Average Daily Volume: $153.01k ($612.1m)
90 Day Average Daily Volume: $151.01k (674.6m)
1 week Normalised Volatility: 0.04511 (0.04678)
1 month Normalised Volatility: 0.08524 (0.08670)
3 month Normalised Volatility: Insufficient Data (0.05936)
6 month Normalised Volatility: Insufficient Data (0.06224)
1 year Normalised Volatility: Insufficient Data (0.06462)
We recommend the following parameter configuration upon listing stMATIC.
Liquidation Threshold: 65%
Liquidation Penalty: 10%
Reserve Factor: 20%
Variable Interest Rate Parameters:
stMATIC eMode Parameters
95% → 92.5%
97% → 95%
2.5% → 1%
** Amended 21/08/2022 to reflect conversations with @bgdlabs highlighting these parameters should match those used by sAVAX on the Avalanche market.
Supply Borrow Caps
NewSupplyCap $7.5m stMATIC
Opinion / Comments
When more information about the timing of a Chainlink Oracle is made available for stMATIC, we will be able to reassess the liquidity and circulating supply on Polygon and determine if Isolation mode is suitable. In time E-Mode is possible and this will require a new category to be created.
At this point in time the concentration amongst liquidity providers and overall amount of stMATIC in liquidity pools gives reason for caution. We know from listing stETH, that listing stMATIC, could lead to significant recursive behaviour. This creates a risk for lenders. Something to keep in mind is the Polygon market is not covered by the mainnet Safety Module.
Upon discussing the asset listing with the Lido community, we learned there are likely to be new decentralised exchange liquidity pools emerging in the near future. Pending the timing and success of these pools, along with the Chainlink Oracle, the risk assessment may improve. A conservative listing would include Isolation mode with a Supply ceiling in place until liquidity and circulating supply improves. The following Isolation mode parameters would be a good starting place based upon current market conditions:
Supply Borrow Caps
NewSupplyCap 7.5m stMATIC
Regarding systemic risk considerations, the v3 Polygon market has approximately $64m of TVL and if stMATIC was 15% of the TVL (collateral) then $9.6m or 16m stMATIC tokens at 60 cents each could be deposited into the lending pool. Having 15% of the borrowing on the market backed by one asset is a lot given the volatility of the asset. It also happens to be a very high percentage of total supply and close to 100% of all stMATIC tokens on the Polygon network. From this we can conclude the limitation is not systemic risk, but rather the circulating supply and liquidity of stMATIC.
The limitation for stMATIC is circulating supply; roughly in crude terms, ⅔ of it is in DEX pools and ⅓ elsewhere within the Polygon ecosystem. The Balancer pool holds 6,627,553 stMATIC and the Quickswap pool holds 4,282,849. Using these two main pools, that is 10,910,402 stMATIC tokens in DEX liquidity pools. 50% of stMATIC circulating supply on Polygon is 7.59m. If 50% of stMATIC was deposited into Aave lending pools, then the stMATIC in DEX pools would contract.
A NewSupplyCap of 7.5m is a reasonable place to start.
Contributors: @MatthewGraham, @uhom and 3SEHoldings.
As a part of Certora continuous formal verification activity, we have conducted a formal verification of stMATIC token code using our generic ERC20 token specification.
It’s important to note that this is strictly a technical analysis of the smart contract code.
How to look at the dashboard
With Certora technology, we write rules that specify how a smart contract should behave and the tool either proves that the rule always holds or finds a counterexample. It’s impossible to specify general rules for all the ERC20 tokens, since they all have different features. We have chosen to specify a set of strict rules for tokens, for example “transfer should always work”. As a result, a token that has a pause and/or a blacklist function (like USDC) will fail the “transfer should always work” rule
In the case of ERC20, the point of these rules is usually to present precise information about the token behavior to the community. This is how we should look at rule failures - usually not as bugs but as information about token features.
Having said that, here is our dashboard with the findings:
In summary, the stMATIC token code complies with our generic mintable ERC20 specification.
I went to the AAVE discord to get an update on StMATIC but they said to give this thread a bump to see the status/progress. Can anyone provide color to this situation.
Days not weeks. A team is working on the payload right now.
Just executed the payload.
Stmatic is now officially onboarded into Aave.
Congrats Lido team!
Thank you Marc for all the help and patience with our questions