{"componentChunkName":"component---src-pages-sips-sip-markdown-remark-frontmatter-sip-tsx","path":"/sips/sip-348/","result":{"data":{"markdownRemark":{"fileAbsolutePath":"/vercel/path0/content/sips/sip-348.md","frontmatter":{"sip":348,"sccp":null,"title":"Enable USDC for Andromeda on Base","network":"Base","author":"Cavalier (@cavalier_eth)","type":"Governance","proposal":"https://snapshot.org/#/snxgov.eth/proposal/0x26342565ba92592c7461663990d2cea6fced657996f0ced178353e79d0512eb1","implementor":null,"release":null,"created":"2023-10-27T00:00:00.000Z","updated":null,"status":"Implemented"},"html":"<h2 id=\"simple-summary\" style=\"position:relative;\"><a href=\"#simple-summary\" aria-label=\"simple summary permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Simple Summary</h2>\n<p>Configure the Andromeda Base V3 deployment to accept USDC collateral, and enable ETH and BTC markets on Perps V3. Set conservative limits appropriate for integrator testing.</p>\n<h2 id=\"abstract\" style=\"position:relative;\"><a href=\"#abstract\" aria-label=\"abstract permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Abstract</h2>\n<p>This SIP proposes to configure the Andromeda Base V3 deployment such that it accepts USDC collateral for both LP and perp margin. Limits for both are approrpriate only for integrator testing. Additionally, ETH and BTC markets will be enabled on Perps V3. Focussing on USDC collateral limits the complexity of the deployment, reduces risk and increases alignment with the Base network. The complete Andromeda on Base release also requires <a href=\"https://sips.synthetix.io/sips/sip-345/\">SIP-345</a>, <a href=\"https://sips.synthetix.io/sips/sip-337\">SIP-337</a> and <a href=\"https://github.com/Synthetixio/SIPs/pull/1748\">SIP-315</a>.</p>\n<h2 id=\"motivation\" style=\"position:relative;\"><a href=\"#motivation\" aria-label=\"motivation permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Motivation</h2>\n<p>Configuring Andromeda on Base to accept USDC for LPing and perp margin opens up Synthetix to a new set of users. The initial configuration should be extremely conservative, sufficient for integrator testing only. Once intitial testing is complete, caps can be increased by SCCP as appropriate.</p>\n<h2 id=\"specification\" style=\"position:relative;\"><a href=\"#specification\" aria-label=\"specification permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Specification</h2>\n<h3 id=\"overview\" style=\"position:relative;\"><a href=\"#overview\" aria-label=\"overview permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Overview</h3>\n<p>This SIP will conservatively define the Andromeda Base V3 deployment settings to accept USDC as collateral for LPing, and margin for trading Perps. It will also activate ETH and BTC markets on Perps V3. A USDC Spot Market and Wrapper will be implemented so that both LPs and perp traders only have to think about USDC, and utilizes the existing configrtuation capability of the underlying systems. This configuration treats USDC as a constant valued at $1. The spot market wrapper will be used to produce the 1:1 redeemable synth sUSDC for LPing, and swapping to sUSD for perp margin.</p>\n<h3 id=\"rationale\" style=\"position:relative;\"><a href=\"#rationale\" aria-label=\"rationale permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Rationale</h3>\n<p>The introduction of USDC as collateral, with a constant value, provides an opportunity to test the market's appetite in a controlled manner before adding more complex assets like ETH. By using a spot market wrapper, a 1:1 redeemable synth sUSDC will facilitate Perps trading. The initial limitation to $50k of LP collateral and $10k perp open interest is to prevent any material funds being used during this first stage of mainnet integrator testing. Disabling of minting is a conscious decision to increase the liquidity available to the Perps Market.</p>\n<h3 id=\"technical-specification\" style=\"position:relative;\"><a href=\"#technical-specification\" aria-label=\"technical specification permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Technical Specification</h3>\n<p>Configure the core system:\nRequire Markets to have 125% collateralization, and require at least 1 days before being able to withdraw collateral</p>\n<ul>\n<li><code>minimum_liquidity_ratio</code> = 125%</li>\n<li><code>account_timeout_withdraw</code> = 1 day</li>\n</ul>\n<p>Enable USDC as collateral, at a fixed price of $1, and maximum of $50k</p>\n<ul>\n<li><code>usdc_address</code> = 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913</li>\n<li><code>registerNode</code> = CONSTANT NODE, 1</li>\n<li><code>synthUsdcMaxMarketCollateral</code> = 50000</li>\n</ul>\n<p>Disable minting, and set liquidation at 100.005%</p>\n<ul>\n<li><code>issuanceRatioD18</code> = MaxUint256</li>\n<li><code>liquidationRatioD18</code> = 1.005</li>\n</ul>\n<p>Global Perps Market configuration</p>\n<ul>\n<li><code>maxCollateralAmounts</code> = 10000 ($10k maximum perp margin per account to be conservative)</li>\n<li><code>synthDeductionPriority</code> = [0] (no liquidation priority required with only one margin type)</li>\n<li><code>maxPositionsPerAccount</code> = 5 (max 5 positions per account to reduce gas.)</li>\n<li><code>maxCollateralsPerAccount</code> = 1 (sUSD is the only perp margin enabled)</li>\n</ul>\n<p>Below are the most relevant parameters pertaining to the perp market included in this release:</p>\n<table>\n<thead>\n<tr>\n<th align=\"center\"><strong>Perp Market</strong></th>\n<th align=\"center\"><strong>ETH</strong></th>\n<th align=\"center\"><strong>BTC</strong></th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td align=\"center\">marketId</td>\n<td align=\"center\">100</td>\n<td align=\"center\">200</td>\n</tr>\n<tr>\n<td align=\"center\">skewScale</td>\n<td align=\"center\">100k</td>\n<td align=\"center\">1m</td>\n</tr>\n<tr>\n<td align=\"center\">maxFundingVelocity</td>\n<td align=\"center\">9</td>\n<td align=\"center\">9</td>\n</tr>\n<tr>\n<td align=\"center\">makerFee</td>\n<td align=\"center\">2 bp</td>\n<td align=\"center\">2 bp</td>\n</tr>\n<tr>\n<td align=\"center\">takerFee</td>\n<td align=\"center\">5 bp</td>\n<td align=\"center\">5 bp</td>\n</tr>\n<tr>\n<td align=\"center\">maxMarketSize</td>\n<td align=\"center\">4.5</td>\n<td align=\"center\">0.25</td>\n</tr>\n<tr>\n<td align=\"center\">initialMarginRatio</td>\n<td align=\"center\">8.92</td>\n<td align=\"center\">13.35</td>\n</tr>\n<tr>\n<td align=\"center\">maintenanceMarginScalar</td>\n<td align=\"center\">0.28</td>\n<td align=\"center\">0.28</td>\n</tr>\n<tr>\n<td align=\"center\">minimumInitialMarginRatio</td>\n<td align=\"center\">200 bp</td>\n<td align=\"center\">200 bp</td>\n</tr>\n<tr>\n<td align=\"center\">maxLiquidationLimitAccumulationMultiplier</td>\n<td align=\"center\">1.5</td>\n<td align=\"center\">1.5</td>\n</tr>\n<tr>\n<td align=\"center\">maxSecondsInLiquidationWindow</td>\n<td align=\"center\">30</td>\n<td align=\"center\">30</td>\n</tr>\n<tr>\n<td align=\"center\">minimumPositionMargin</td>\n<td align=\"center\">50</td>\n<td align=\"center\">50</td>\n</tr>\n<tr>\n<td align=\"center\">lockedOiRatio</td>\n<td align=\"center\">0.5</td>\n<td align=\"center\">0.5</td>\n</tr>\n<tr>\n<td align=\"center\">maxLiquidationPD</td>\n<td align=\"center\">5 bp</td>\n<td align=\"center\">5 bp</td>\n</tr>\n<tr>\n<td align=\"center\">flagRewardRatio</td>\n<td align=\"center\">3 bp</td>\n<td align=\"center\">3 bp</td>\n</tr>\n</tbody>\n</table>\n<p>Aside from the above, the below are generic for all perp markets that will be deployed:</p>\n<ul>\n<li>Endorsed Liquidator: <code>0x11233749514Ab8d00C0A5873DF7428b3db70030f</code></li>\n<li>Settlement Delay / Commitment Price Delay: 2 seconds</li>\n<li>Settlement Window: 60 seconds</li>\n<li>Strict Staleness Tolerance: 60 seconds</li>\n<li>Relaxed Staleness Tolerance (Default): 1 hour</li>\n</ul>\n<p>Subsequent to the initial initial release, parameters reconfigurations will be proposed via SCCPs'. Please note that the full list of parameters configured for this release can be found in this <a href=\"https://github.com/Synthetixio/synthetix-deployments/pull/89\">PR</a>.</p>\n<h3 id=\"test-cases\" style=\"position:relative;\"><a href=\"#test-cases\" aria-label=\"test cases permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Test Cases</h3>\n<p>Test cases will be provided with the implementation to ensure that the Andromeda Base V3 deployment correctly accepts USDC and that ETH and BTC markets operate as expected on Perps V3.</p>\n<h3 id=\"configurable-values-via-sccp\" style=\"position:relative;\"><a href=\"#configurable-values-via-sccp\" aria-label=\"configurable values via sccp permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Configurable Values (Via SCCP)</h3>\n<p>All variables of the deployed V3 system.</p>\n<h2 id=\"copyright\" style=\"position:relative;\"><a href=\"#copyright\" aria-label=\"copyright permalink\" class=\"anchor before\"><svg aria-hidden=\"true\" focusable=\"false\" height=\"16\" version=\"1.1\" viewBox=\"0 0 16 16\" width=\"16\"><path fill-rule=\"evenodd\" d=\"M4 9h1v1H4c-1.5 0-3-1.69-3-3.5S2.55 3 4 3h4c1.45 0 3 1.69 3 3.5 0 1.41-.91 2.72-2 3.25V8.59c.58-.45 1-1.27 1-2.09C10 5.22 8.98 4 8 4H4c-.98 0-2 1.22-2 2.5S3 9 4 9zm9-3h-1v1h1c1 0 2 1.22 2 2.5S13.98 12 13 12H9c-.98 0-2-1.22-2-2.5 0-.83.42-1.64 1-2.09V6.25c-1.09.53-2 1.84-2 3.25C6 11.31 7.55 13 9 13h4c1.45 0 3-1.69 3-3.5S14.5 6 13 6z\"></path></svg></a>Copyright</h2>\n<p>Copyright and related rights waived via <a href=\"https://creativecommons.org/publicdomain/zero/1.0/\">CC0</a>.</p>"}},"pageContext":{"id":"111d5eb9-91f0-5f59-81b4-47c1d6fd6e27","frontmatter__sip":348,"__params":{"frontmatter__sip":"348"}}},"staticQueryHashes":[]}