Skip to content
This repository was archived by the owner on Aug 26, 2024. It is now read-only.

Commit a533fef

Browse files
committed
Merge branch 'development' into feat/adrastia-prudentia-caps
2 parents 0a53f04 + 5a72159 commit a533fef

File tree

88 files changed

+3639
-1467
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+3639
-1467
lines changed

.github/ISSUE_TEMPLATE/custom-asset-support.md

Lines changed: 25 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -2,53 +2,56 @@
22
name: Custom Asset Support
33
about: Add support for specific asset in a specific chain
44
title: Support Asset $XXX
5-
labels: ''
6-
assignees: ''
7-
5+
labels: ""
6+
assignees: ""
87
---
98

109
<h3> Custom Asset Information: </h3> <br>
1110

12-
*Use the reference below for Asset Information. If not found in the table, please notify Nik via Discord* <br>
11+
_Use the reference below for Asset Information. If not found in the table, please notify Nik via Discord_ <br>
1312
[Link to Notion Custom Asset Table](https://www.notion.so/4627d911ce3c4589aef9f7592650e7b2?v=4b3abb4ebfd44018bcf47496d512b778) <br>
1413

15-
**Symbol**: *<ins> ETH </ins>* <br>
16-
**Block Explorer URL**: *https://etherscan.io/address/0x0000000000000000000000000000000000000000* <br>
17-
**Chain**: *<ins> Ethereum </ins>*
14+
**Symbol**: _<ins> ETH </ins>_ <br>
15+
**Block Explorer URL**: *https://etherscan.io/address/0x0000000000000000000000000000000000000000* <br>
16+
**Chain**: _<ins> Ethereum </ins>_
1817

19-
*Please mark the tasks below, as appropriate. Then link supporting Github items together in the Comments section either using # or the button in the screenshot below:* <br>
20-
![Screenshot of Github Link Button](https://user-images.githubusercontent.com/103433798/169572470-b7e31053-afab-4225-9816-6403193b86b3.png) <br>
18+
_Please mark the tasks below, as appropriate. Then link supporting Github items together in the Comments section either using # or the button in the screenshot below:_ <br>
19+
![Screenshot of Github Link Button](https://user-images.githubusercontent.com/103433798/169572470-b7e31053-afab-4225-9816-6403193b86b3.png) <br>
2120

22-
**<ins>Link To Matching Chain Deployment Ticket</ins>:** #*Insert Link Here* <br>
21+
**<ins>Link To Matching Chain Deployment Ticket</ins>:** #_Insert Link Here_ <br>
2322

2423
- [ ] **ChainLink / DIA / Flux Supported** _*OR*_
2524
- [ ] **Requires Custom Oracle** <br>
26-
&nbsp;&nbsp;&nbsp;- [Link to Custom Oracle Template](https://github.com/Midas-Protocol/contracts/issues/new?assignees=&labels=&template=custom-oracle.md&title=Custom+Oracle+for+%24XXX)
25+
&nbsp;&nbsp;&nbsp;- [Link to Custom Oracle Template](https://github.com/Ionic-Protocol/contracts/issues/new?assignees=&labels=&template=custom-oracle.md&title=Custom+Oracle+for+%24XXX)
2726
- [ ] **Requires Custom Liquidator** <br>
28-
&nbsp;&nbsp;&nbsp;- [Link to Custom Liquidator Template](https://github.com/Midas-Protocol/contracts/issues/new?assignees=&labels=&template=custom-liquidation-strategy.md&title=Custom+Liquidation+Strategy+for+%24XXX)
27+
&nbsp;&nbsp;&nbsp;- [Link to Custom Liquidator Template](https://github.com/Ionic-Protocol/contracts/issues/new?assignees=&labels=&template=custom-liquidation-strategy.md&title=Custom+Liquidation+Strategy+for+%24XXX)
2928
- [ ] **ERC-4626 Support** <br>
30-
&nbsp;&nbsp;&nbsp;&nbsp;- [Link to ERC-4626 Template](https://github.com/Midas-Protocol/contracts/issues/new?assignees=&labels=&template=erc-4626-strategy.md&title=ERC-4626+Strategy+for+%24XXX)
29+
&nbsp;&nbsp;&nbsp;&nbsp;- [Link to ERC-4626 Template](https://github.com/Ionic-Protocol/contracts/issues/new?assignees=&labels=&template=erc-4626-strategy.md&title=ERC-4626+Strategy+for+%24XXX)
3130

3231
<h3> Tasks: </h3>
3332

34-
- [ ] Edit the supported assets: https://github.com/Midas-Protocol/monorepo/tree/development/packages/sdk/src/chainConfig/assets and add the asset to the respective chain
33+
- [ ] Edit the supported assets: https://github.com/Ionic-Protocol/monorepo/tree/development/packages/sdk/src/chainConfig/assets and add the asset to the respective chain
3534

3635
- [ ] Edit deployment script to set up and deploy oracle and liquidator
3736

38-
*IF it is a uniswap-twap oracle supported asset*
39-
- [ ] For Uniswap-supported assets, redeploy the fuse-twap-bot after adding editing the `supported_pairs` variable in the [ops directory](https://github.com/Midas-Protocol/monorepo/blob/development/ops/main.tf#L28)
37+
_IF it is a uniswap-twap oracle supported asset_
38+
39+
- [ ] For Uniswap-supported assets, redeploy the fuse-twap-bot after adding editing the `supported_pairs` variable in the [ops directory](https://github.com/Ionic-Protocol/monorepo/blob/development/ops/main.tf#L28)
40+
41+
_IF requires custom liquidation strategy_
4042

41-
*IF requires custom liquidation strategy*
42-
- [ ] Edit the redemption strategies: https://github.com/Midas-Protocol/monorepo/blob/development/packages/sdk/src/chainConfig/redemptionStrategies.ts
43-
- [ ] Edit the redemption strategy data encoding: https://github.com/Midas-Protocol/monorepo/blob/development/packages/sdk/src/modules/liquidation/redemptionStrategy.ts#L23
43+
- [ ] Edit the redemption strategies: https://github.com/Ionic-Protocol/monorepo/blob/development/packages/sdk/src/chainConfig/redemptionStrategies.ts
44+
- [ ] Edit the redemption strategy data encoding: https://github.com/Ionic-Protocol/monorepo/blob/development/packages/sdk/src/modules/liquidation/redemptionStrategy.ts#L23
4445
- [ ] Edit the `chainDeploy/<chain>.ts` deploy script to deploy the liquidation strategy, if not already there
4546

46-
*IF it needs/could use a plugin and/or flywheel*
47+
_IF it needs/could use a plugin and/or flywheel_
48+
4749
- [ ] Edit the `chainDeploy/<chain>.ts` deploy script to deploy the plugin & their flywheel(s)
4850

4951
### Deployment
5052

51-
After all the items above are complete, proceed with the deployment of the contracts and changes to the deployment script.
53+
After all the items above are complete, proceed with the deployment of the contracts and changes to the deployment script.
5254

5355
If a plugin and/or Flywheel were deployed with this, then, you also need to:
54-
- [ ] Edit the plugin config: https://github.com/Midas-Protocol/monorepo/blob/development/packages/sdk/src/chainConfig/plugin.ts so that the information about it is made available to the SDK users/FE
56+
57+
- [ ] Edit the plugin config: https://github.com/Ionic-Protocol/monorepo/blob/development/packages/sdk/src/chainConfig/plugin.ts so that the information about it is made available to the SDK users/FE
Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,53 +1,53 @@
11
---
22
name: Initial Chain Deployment
33
about: Task for having a full SC deployment to a new chain
4-
title: 'Initial Chain Deployment: <Chain Name>'
5-
labels: ''
6-
assignees: ''
7-
4+
title: "Initial Chain Deployment: <Chain Name>"
5+
labels: ""
6+
assignees: ""
87
---
98

109
## Chain Information
1110

12-
Link to Chain Developer docs: *XXX*
11+
Link to Chain Developer docs: _XXX_
1312

1413
**Mainnet**
15-
Chain Name: *XXX* <br>
16-
Chain ID: *XXX* <br>
17-
RPC URL: *XXX* <br>
18-
Native Token: *explorer url/XXX* <br>
19-
Wrapped Native Token: *explorer url/XXX* <br>
14+
Chain Name: _XXX_ <br>
15+
Chain ID: _XXX_ <br>
16+
RPC URL: _XXX_ <br>
17+
Native Token: _explorer url/XXX_ <br>
18+
Wrapped Native Token: _explorer url/XXX_ <br>
2019

2120
**Testnet**
22-
Chain Name: *XXX* <br>
23-
Chain ID: *XXX* <br>
24-
RPC URL: *XXX* <br>
25-
Native Token: *explorer url/XXX* <br>
26-
Wrapped Native Token: *explorer url/XXX* <br>
21+
Chain Name: _XXX_ <br>
22+
Chain ID: _XXX_ <br>
23+
RPC URL: _XXX_ <br>
24+
Native Token: _explorer url/XXX_ <br>
25+
Wrapped Native Token: _explorer url/XXX_ <br>
2726

2827
**Ecosystem**
2928
Uniswap-clone project name: XXX <br>
3029
Uniswap-clone docs: XXX <br>
3130

3231
## Tasks
33-
*Please mark the tasks below, as appropriate. Then link supporting Github items together in the Comments section either using # or the button in the screenshot below:* <br>
34-
![Screenshot of Github Link Button](https://user-images.githubusercontent.com/103433798/169572470-b7e31053-afab-4225-9816-6403193b86b3.png)
32+
33+
_Please mark the tasks below, as appropriate. Then link supporting Github items together in the Comments section either using # or the button in the screenshot below:_ <br>
34+
![Screenshot of Github Link Button](https://user-images.githubusercontent.com/103433798/169572470-b7e31053-afab-4225-9816-6403193b86b3.png)
3535

3636
- [ ] Please use the link below to add initial set of assets <br>
37-
- [Link to Custom Asset Template](https://github.com/Midas-Protocol/monorepo/issues/new?assignees=&labels=Custom+Asset+Support&template=custom-asset-support.md&title=Support+Asset+%24XXX)
37+
- [Link to Custom Asset Template](https://github.com/Ionic-Protocol/monorepo/issues/new?assignees=&labels=Custom+Asset+Support&template=custom-asset-support.md&title=Support+Asset+%24XXX)
3838
- [ ] Create chain-specific deploy script inside `chainDeploy`
39-
- [ ] Add the supported chain and its parameters to the [network configs](https://github.com/Midas-Protocol/contracts/blob/main/src/network.ts) of the SDK
40-
- [ ] Blocks per year
41-
- [ ] Chain-specific addresses
42-
- [ ] Supported oracles
39+
- [ ] Add the supported chain and its parameters to the [network configs](https://github.com/Ionic-Protocol/contracts/blob/main/src/network.ts) of the SDK
40+
- [ ] Blocks per year
41+
- [ ] Chain-specific addresses
42+
- [ ] Supported oracles
4343
- [ ] Add network to hardhat config
4444
- [ ] Run deploy script, export deployments and commit both `deployments.json` and deployments artifacts <br> <br>
45-
**SDK**
45+
**SDK**
4646
- [ ] Add supported assets to chainConfig/supportedAssets
4747
- [ ] Add chain ids to SupportedChains enum
4848
- [ ] Redeploy SDK <br> <br>
49-
**UI**
49+
**UI**
5050
- [ ] Add Chain Mainnet and Testnet to `SwitchNetworkModal`
51-
- [ ] Add ChainMetadata for Main & Testnet
52-
- [ ] Make sure Main & Testnet are Listed in SupportedChains
53-
- [ ] Deactivate Mainnet via netlify.toml until specific release
51+
- [ ] Add ChainMetadata for Main & Testnet
52+
- [ ] Make sure Main & Testnet are Listed in SupportedChains
53+
- [ ] Deactivate Mainnet via netlify.toml until specific release

0 commit comments

Comments
 (0)