Skip to content

Commit

Permalink
Update params.
Browse files Browse the repository at this point in the history
  • Loading branch information
piobab committed Aug 13, 2024
1 parent c9dd472 commit 430ebb0
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 23 deletions.
13 changes: 13 additions & 0 deletions scripts/deploy/addresses/neutron-1-deployer-owner.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"addressProvider": "neutron1ddrvlzptl90mgv59akqnw6a4ee8leqh95ptcc6ehwsr0pp2054gsn77h8r",
"redBank": "neutron1qq7jy9xvr6mhch3fh9v75wjucp3z0zhmuw5u7f6szwuvxrsp69tq23v79a",
"incentives": "neutron1qs4e0czgalrpd2370kqs56e6zy3fwdpyesm7r8qr28vca73hfm8qfdjpzm",
"oracle": "neutron1d8azuw3uq3p3ujk2pl2es2adazz594mlxu96whu043ukk32g6l6sar53su",
"rewardsCollector": "neutron1cajk6xwa25r8emxzscvxxdkgw4279qphzrrqh5c8sy0qducz82msxmxvah",
"swapper": "neutron1gmxj7msgq0seam8g2fz4mmpy0tpg8terxrw3s0dden65n4gwymks7svmmg",
"params": "neutron1s87zxg4dfzeelxu3w2lh7m6fxdrqeek0w8kcq24vvcdj7y4qj7dqv4up92",
"zapper": "neutron1a93l2c3fsgrwqvtyd4xqxnya2jmta4erwlaaufwc06j870lx63pq9ruyde",
"health": "neutron1n5tslf6xswzqlg026jkc0u78zll60pxf8p5gsgt55nd22vgnac8qscqjm3",
"creditManager": "neutron19g6ga4wjv5h4xyz8w0qmpyzekxnptzndw05h86hkvj6jlhdcv0dslc65fm",
"accountNft": "neutron19pv2hwh2qk3f3yq2q7976fg0rh3nsh6kw5lwpnl46cu3tusa7tms6jh2mh"
}
47 changes: 24 additions & 23 deletions scripts/deploy/neutron/devnet-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ import { NeutronIbcConfig } from '../../types/generated/mars-rewards-collector-b
const nobleUsdcDenom = 'ibc/B559A80D62249C8AA07A380E2A2BEA6E5CA9A6F079C912C3A9E9B494105E4F81'
const atomDenom = 'ibc/C4CFF46FD6DE35CA4CF4CE031E643C8FDC9BA4B99AE598E9B0ED98FE3A2319F9'
const marsDenom = 'ibc/9598CDEB7C6DB7FC21E746C8E0250B30CD5154F39CA111A9D4948A4362F638BD'
const dAtomDenom = 'factory/neutron1r89rnk4uu3dq4z44cxvl6809cwq7s0edfeja5lny3xueatkargqs7pfz9f/udatom'
const dAtomDenom =
'factory/neutron1r89rnk4uu3dq4z44cxvl6809cwq7s0edfeja5lny3xueatkargqs7pfz9f/udatom'

const dAtomUsdcLpDenom =
'factory/neutron1k3755gvujh2nldgqwdz9caszquah53f0kg0zflwja3vrq5z4ur6sq4c4nc/astroport/share'
Expand Down Expand Up @@ -115,7 +116,7 @@ export const dAtomOracle: OracleConfig = {
astroport_twap: {
pair_address: dAtomAtomPairAddr,
window_size: 1800,
tolerance: 120
tolerance: 120,
},
},
}
Expand Down Expand Up @@ -203,8 +204,8 @@ export const atomAsset: AssetConfig = {
hls: {
max_loan_to_value: '0.86',
liquidation_threshold: '0.865',
correlations: [{ coin: { denom: dAtomDenom } }, { coin: { denom: dAtomAtomLpDenom } }]
}
correlations: [{ coin: { denom: dAtomDenom } }, { coin: { denom: dAtomAtomLpDenom } }],
},
},
red_bank: {
borrow_enabled: true,
Expand Down Expand Up @@ -271,10 +272,10 @@ export const dAtomAsset: AssetConfig = {
deposit_cap: '50000000000',
reserve_factor: '0.1',
interest_rate_model: {
optimal_utilization_rate: '0',
optimal_utilization_rate: '0.6',
base: '0',
slope_1: '0',
slope_2: '0',
slope_1: '0.15',
slope_2: '3',
},
}

Expand All @@ -300,10 +301,10 @@ export const dAtomUsdcLpAsset: AssetConfig = {
deposit_cap: '1000000000000000000',
reserve_factor: '0.1',
interest_rate_model: {
optimal_utilization_rate: '0',
optimal_utilization_rate: '0.6',
base: '0',
slope_1: '0',
slope_2: '0',
slope_1: '0.15',
slope_2: '3',
},
}

Expand All @@ -329,10 +330,10 @@ export const dAtomNtrnLpAsset: AssetConfig = {
deposit_cap: '1000000000000000000',
reserve_factor: '0.1',
interest_rate_model: {
optimal_utilization_rate: '0',
optimal_utilization_rate: '0.6',
base: '0',
slope_1: '0',
slope_2: '0',
slope_1: '0.15',
slope_2: '3',
},
}

Expand All @@ -358,17 +359,17 @@ export const ntrnUsdcLpAsset: AssetConfig = {
deposit_cap: '1000000000000000000',
reserve_factor: '0.1',
interest_rate_model: {
optimal_utilization_rate: '0',
optimal_utilization_rate: '0.6',
base: '0',
slope_1: '0',
slope_2: '0',
slope_1: '0.15',
slope_2: '3',
},
}

export const dAtomAtomLpAsset: AssetConfig = {
denom: dAtomAtomLpDenom,
max_loan_to_value: '0',
liquidation_threshold: '0',
liquidation_threshold: '0.01',
liquidation_bonus: {
max_lb: '0.2',
min_lb: '0.05',
Expand All @@ -387,10 +388,10 @@ export const dAtomAtomLpAsset: AssetConfig = {
deposit_cap: '1000000000000000000',
reserve_factor: '0.1',
interest_rate_model: {
optimal_utilization_rate: '0',
optimal_utilization_rate: '0.6',
base: '0',
slope_1: '0',
slope_2: '0',
slope_1: '0.15',
slope_2: '3',
},
}

Expand Down Expand Up @@ -446,9 +447,9 @@ export const neutronDevnetConfig: DeploymentConfig = {
atomAsset,
nobleUSDCAsset,
dAtomUsdcLpAsset,
dAtomNtrnLpAsset,
// dAtomNtrnLpAsset,
ntrnUsdcLpAsset,
dAtomAtomLpAsset
dAtomAtomLpAsset,
],
vaults: [],
oracleConfigs: [
Expand All @@ -458,7 +459,7 @@ export const neutronDevnetConfig: DeploymentConfig = {
ntrnOracle,
dAtomOracle,
dAtomUsdcLpOracle,
dAtomNtrnLpOracle,
// dAtomNtrnLpOracle,
ntrnUsdcLpOracle,
dAtomAtomLpOracle,
],
Expand Down

0 comments on commit 430ebb0

Please sign in to comment.