Skip to content

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
EviLord032 committed May 8, 2024
1 parent 97d9704 commit 90e34bf
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 1 deletion.
18 changes: 18 additions & 0 deletions deployments/polygon/usdt/configuration.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,24 @@
},
"rewardTokenAddress": "0x8505b9d2254A7Ae468c0E9dd10Ccea3A837aef5c",
"assets": {
"aPolMATICX": {
"address": "0x80cA0d8C38d2e2BcbaB66aA1648Bd1C7160500FE",
"priceFeed": "0x5d37E4b374E6907de8Fc7fb33EE3b0af403C7403",
"decimals": "18",
"borrowCF": 0.60,
"liquidateCF": 0.70,
"liquidationFactor": 0.80,
"supplyCap": "0e18"
},
"stMATIC": {
"address": "0x3A58a54C066FdC0f2D55FC9C89F0415C92eBf3C4",
"priceFeed": "0x97371dF4492605486e23Da797fA68e55Fc38a13f",
"decimals": "18",
"borrowCF": 0.60,
"liquidateCF": 0.70,
"liquidationFactor": 0.80,
"supplyCap": "0e18"
},
"WETH": {
"address": "0x7ceb23fd6bc0add59e62ac25578270cff1b9f619",
"priceFeed": "0xF9680D99D6C9589e2a93a78A04A279e509205945",
Expand Down
2 changes: 2 additions & 0 deletions deployments/polygon/usdt/deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export default async function deploy(deploymentManager: DeploymentManager, deplo
const WBTC = await deploymentManager.existing('WBTC', '0x1bfd67037b42cf73acf2047067bd4f2c47d9bfd6', 'polygon');
const WETH = await deploymentManager.existing('WETH', '0x7ceb23fd6bc0add59e62ac25578270cff1b9f619', 'polygon');
const WMATIC = await deploymentManager.existing('WMATIC', '0x0d500B1d8E8eF31E21C99d1Db9A6444d3ADf1270', 'polygon');
const MATICX = await deploymentManager.existing('aPolMATICX', '0x80cA0d8C38d2e2BcbaB66aA1648Bd1C7160500FE', 'polygon');
const stMATIC = await deploymentManager.existing('stMATIC', '0x3A58a54C066FdC0f2D55FC9C89F0415C92eBf3C4', 'polygon');
const COMP = await deploymentManager.existing('COMP', '0x8505b9d2254A7Ae468c0E9dd10Ccea3A837aef5c', 'polygon');

const fxChild = await deploymentManager.existing('fxChild', '0x8397259c983751DAf40400790063935a11afa28a', 'polygon');
Expand Down
9 changes: 9 additions & 0 deletions deployments/polygon/usdt/relations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ export default {
field: {
slot: '0xbaab7dbf64751104133af04abc7d9979f0fda3b059a322a8333f533d3f32bf7f',
}
},
// aPolMATICX
'0x80cA0d8C38d2e2BcbaB66aA1648Bd1C7160500FE': {
artifact: 'contracts/ERC20.sol:ERC20',
delegates: {
field: {
slot: '0x360894a13ba1a3210667c828492db98dca3e2076cc3735a920a3ca505d382bbc'
}
}
}
}
};
2 changes: 1 addition & 1 deletion scenario/AddMaticxCollateralScenario.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ scenario(
'add new asset maticx',
{
filter: async (ctx) =>
matchesDeployment(ctx, [{ network: 'polygon' }]),
matchesDeployment(ctx, [{ network: 'polygon' }]) && !matchesDeployment(ctx, [{deployment: 'usdt'}, { network: 'polygon' }]),
tokenBalances: {
$comet: { $base: '>= 1' },
},
Expand Down

0 comments on commit 90e34bf

Please sign in to comment.