Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates #83

Open
wants to merge 185 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
185 commits
Select commit Hold shift + click to select a range
2ea7b69
update GMX market funding params
gdev8317 Nov 19, 2024
7a7055d
calculate incentives for epoch 13 nov
gdev8317 Nov 20, 2024
2a62ed4
distribute arbitrum incentives for epoch nov 13
gdev8317 Nov 20, 2024
d693462
Add configs for BOME, MEME, FLOKI, MEW
dmax10 Nov 20, 2024
710ebb5
Add glv config, remove comments
dmax10 Nov 20, 2024
fa89b71
Add Pendle config
dmax10 Nov 20, 2024
f3055f1
deploy ExchangeRouter on fuji
gdev8317 Nov 20, 2024
da0fea0
distirbute avalanche incentives for epoch nov 13
gdev8317 Nov 20, 2024
42f5ea9
Add GMX single sided config
dmax10 Nov 20, 2024
972328b
reduce buybackMaxPriceImpactFactor
gdev8317 Nov 21, 2024
c3251b1
remove override for threshold for stable funding
dmax10 Nov 21, 2024
1fc4352
fix min collateral factor percentage
dmax10 Nov 21, 2024
a06e1b9
Merge pull request #81 from gmx-io/bome-floki-meme-mev-configs
gmxer Nov 21, 2024
fc45124
50x -> 100x for MEME and BOME max leverage
gmxer Nov 21, 2024
e29bd3f
Update SS GMX configs
dmax10 Nov 21, 2024
5968d4e
updates v2.2 small WIP
gdev8317 Nov 21, 2024
c385fc5
Add comments for funding values
dmax10 Nov 21, 2024
4dbc098
Merge branch 'updates' into pendle-gmx-configs
dmax10 Nov 21, 2024
fd7162f
Update Pendle max long amount
dmax10 Nov 21, 2024
bda5132
fix tests
gdev8317 Nov 21, 2024
c2f4eea
Add expected ratio for Pendle
dmax10 Nov 21, 2024
98c966e
Merge branch 'updates' into updates-v2.2-small
gdev8317 Nov 21, 2024
113c98b
update setDataStream test, fix glv tests
gdev8317 Nov 21, 2024
63993b0
Merge pull request #82 from gmx-io/pendle-gmx-configs
gmxer Nov 22, 2024
372ec09
move pendle to arbitrum configs
gmxer Nov 22, 2024
e5dd06b
upd sui glv caps
gmxer Nov 22, 2024
0cdf437
add tests for data stream spread factor
gdev8317 Nov 22, 2024
a0ffb4f
add validations for max data stream spread factor
gdev8317 Nov 25, 2024
cf2dad9
Merge branch 'updates' of github.com:gmx-io/gmx-synthetics into updates
gdev8317 Nov 25, 2024
9d38105
Merge branch 'updates' into updates-v2.2-small
gdev8317 Nov 25, 2024
1e8d9e2
fix guardian tests
gdev8317 Nov 25, 2024
ba46513
fix tests
gdev8317 Nov 25, 2024
4ca613a
allow limited keeper to update funding rate configuration
gdev8317 Nov 25, 2024
b1a9bb6
add tests for config
gdev8317 Nov 25, 2024
2e1e357
increase pool caps
gdev8317 Nov 25, 2024
34486de
add liq fee to all fuji markets
gdev8317 Nov 25, 2024
87a3958
Add tokkens config
dmax10 Nov 26, 2024
96df497
Add configs to validation script
dmax10 Nov 26, 2024
34d863d
Add glv config
dmax10 Nov 26, 2024
26fb499
Add markets configs
dmax10 Nov 26, 2024
bcf64c0
fix SOL funding rate config
dmax10 Nov 26, 2024
8fd41d6
update borrowing rate comment
xdev10 Nov 27, 2024
3cde208
Add SOL validation config
dmax10 Nov 27, 2024
6c50ff7
move ADA, XLM, BCH, DOT, ICP to btc glv
dmax10 Nov 27, 2024
a05131e
change data stream spread factor to spread reduction factor
gdev8317 Nov 27, 2024
795af93
small param adjustment
dmax10 Nov 27, 2024
5d1c9d9
fix token pool amounts
dmax10 Nov 27, 2024
530fcf7
update negativePositionImpactFactor config value for SS GMX in valida…
dmax10 Nov 27, 2024
79043ff
update spread reduction factor validation
gdev8317 Nov 27, 2024
016fe87
optimize applying spread reduction factor
gdev8317 Nov 27, 2024
5c830b2
fix updateTokenConfig to not skip 0 value for dataStreamSpreadReducti…
gdev8317 Nov 27, 2024
a1ec66e
update spread reduction test
gdev8317 Nov 27, 2024
8058bcd
calculate incentives for epoch nov 20
gdev8317 Nov 27, 2024
f2ce42d
distribute incentives for epoch nov 20
gdev8317 Nov 27, 2024
303de6f
add printGlvPrices script
gdev8317 Nov 27, 2024
77de8b2
update roles
xdev10 Nov 28, 2024
a9cb6c8
refactor DATA_STREAM_SPREAD_REDUCTION_FACTOR validation in Config
gdev8317 Nov 28, 2024
8aa0a57
Merge pull request #85 from gmx-io/listings-2024-11-28
gmxer Nov 28, 2024
26b5d4e
temporarily remove unlisted markets from glvs
gmxer Nov 28, 2024
3ab245f
increase reserve factor for SUI and increase pool caps for GMX ss
gdev8317 Nov 28, 2024
3cd90b6
update UNI reserve factors
gdev8317 Nov 28, 2024
2b2dbfa
Revert "temporarily remove unlisted markets from glvs"
gmxer Nov 29, 2024
8293089
reduce max funding rate
gdev8317 Nov 29, 2024
5d0c121
Merge pull request #84 from gmx-io/updates-v2.2-small
xvi10 Dec 2, 2024
e92c6c8
update deployments
xdev10 Dec 2, 2024
affb4ce
Merge pull request #86 from gmx-io/2024-12-02_deployments
xvi10 Dec 3, 2024
53ee3ce
add setOracleProviderForToken to updateOracleConfigForTokens script
gdev8317 Dec 3, 2024
c94d3b6
add setOracleProviderForToken to updateOracleConfigForTokens script
gdev8317 Dec 3, 2024
59dcdfd
update RF and pool caps for XRP
gdev8317 Dec 3, 2024
7cba406
update roles
xdev10 Dec 4, 2024
93c1a11
reduce open/close fees and enable liquidation fees for SOL, DOGE and …
gdev8317 Dec 4, 2024
704a2a4
calculate incentives for epoch nov 27
gdev8317 Dec 4, 2024
7a46ad6
distribute avalanche incentives for epoch nov 27
gdev8317 Dec 4, 2024
80a1f36
incrase deposit caps for tBTC market
gdev8317 Dec 5, 2024
6c2bd96
increase DOGE cap in GLV
gdev8317 Dec 5, 2024
e8ebca4
distribute arbitrum incentives for epoch nov 27
gdev8317 Dec 5, 2024
3522086
add printChainlinkPriceFeedProviderReport to test data stream oracle …
gdev8317 Dec 5, 2024
4bf06ee
increase TON GLV cap
gdev8317 Dec 5, 2024
afa93da
fix oracle provider update in updateOracleConfigForTokens
gdev8317 Dec 5, 2024
b5851dc
update liquidation fee receiver factor
gdev8317 Dec 5, 2024
ee6a820
enable funding decrease factor for all markets on arbitrum
gdev8317 Dec 6, 2024
3fbc607
enable funding decrease factor for all markets on arbitrum
gdev8317 Dec 6, 2024
da9714b
fix FLOKI config
gdev8317 Dec 6, 2024
f37994b
set data stream spread to BCH
gdev8317 Dec 6, 2024
50a31b5
increase TON GLV cap
gdev8317 Dec 6, 2024
62d64f7
reduce borrowing rate
gdev8317 Dec 6, 2024
3894e1c
reduce borrowing rate
gdev8317 Dec 6, 2024
97b8822
adjust funding rate
gdev8317 Dec 7, 2024
c14f4e5
adjust min funding factor
gdev8317 Dec 8, 2024
6754dfb
increase BTC GLV caps
gdev8317 Dec 9, 2024
efcee77
fix ts lint
xdev10 Dec 9, 2024
4bccec7
redeploy avalanche fuji
gdev8317 Dec 9, 2024
50517ba
set zero spread for USDC
gdev8317 Dec 9, 2024
c4315fd
reduce glv shift min interval to 30 minutes
gdev8317 Dec 9, 2024
4eedce7
update oracle config to signal fallback automatically
xdev10 Dec 10, 2024
17cc9f8
add comments
xdev10 Dec 10, 2024
9d9f240
increase GLV DOGE cap
gdev8317 Dec 10, 2024
73b87a4
add simulation before executing timelock
gdev8317 Dec 10, 2024
e6e4e5a
reduce spread for BTC and ETH
gdev8317 Dec 10, 2024
6eb3e9d
fix printMarketInfo
gdev8317 Dec 10, 2024
be8a451
update RF for NEAR, SUI and XRP
gdev8317 Dec 10, 2024
d4c19c4
add price impact params to RISK_ORACLE_MANAGED_BASE_KEYS to not overr…
gdev8317 Dec 10, 2024
77c67a1
increase DOGE GLV cap
gdev8317 Dec 10, 2024
28ec3a8
Add FIL and cbBTC configs
dmax10 Dec 10, 2024
282c317
small correction
dmax10 Dec 11, 2024
71edac4
calculate incentives for epoch 2024-12-04
gdev8317 Dec 11, 2024
a34fe25
distribute arbitrum incentives for epoch dec 11
gdev8317 Dec 11, 2024
c25b501
upd TIA glv config
gmxer Dec 12, 2024
1b8b46e
Merge branch 'updates' into listings-2024-12-10
dmax10 Dec 12, 2024
de18f6c
Remove cbBTC config
dmax10 Dec 12, 2024
a1c8a6a
Merge pull request #88 from gmx-io/listings-2024-12-10
gmxer Dec 12, 2024
34e136c
downgrade FIL rates to preset values
gmxer Dec 12, 2024
2afb678
reduce GLV shiftMaxPriceImpactFactor
gdev8317 Dec 12, 2024
3d29ec8
fix printGlvValueDiff script
gdev8317 Dec 13, 2024
9e78e82
increase FIL GLV cap
gdev8317 Dec 13, 2024
e14d5b4
increase GLV APT cap
gdev8317 Dec 13, 2024
7598a81
reduce shiftMaxPriceImpactFactor on arbitrum to 0.01%
gdev8317 Dec 13, 2024
3be5662
add script to print data store values
gdev8317 Dec 13, 2024
27d5af4
adjust glv shiftMaxPriceImpactFactor
gdev8317 Dec 13, 2024
023914d
add hardhat tasks: update-glv-config and update-market-config
gdev8317 Dec 13, 2024
c06bc41
adjust glv shiftMaxPriceImpactFactor
gdev8317 Dec 13, 2024
e276f5e
upd glv price impacts
gmxer Dec 16, 2024
9b758b6
Revert "upd glv price impacts"
gmxer Dec 16, 2024
2ee02d6
distribute avalanche incentives epoch 4 dec
gdev8317 Dec 16, 2024
fec4876
update readme
xdev10 Dec 17, 2024
7a72406
add prompts to initOracleConfigForTokens and timelocks scripts
gdev8317 Dec 17, 2024
39fb799
upd glv caps
gmxer Dec 17, 2024
a00dfd4
increase reserve factors
gdev8317 Dec 17, 2024
edae6bc
add script to print market funding configuration
gdev8317 Dec 17, 2024
ea1065a
increase AAVE reserve factor
gdev8317 Dec 17, 2024
ddf1c4c
increase reserve factors
gdev8317 Dec 17, 2024
0fc55d0
update yarn.lock
xdev10 Dec 18, 2024
1ae0bce
calculate incentives for epoch dec 11
gdev8317 Dec 18, 2024
03b9882
distribute incentives for epoch dec 11
gdev8317 Dec 18, 2024
3013e87
upd price impact factor in glvs
gmxer Dec 19, 2024
8220c9c
Revert "upd price impact factor in glvs"
gmxer Dec 19, 2024
483a4f3
upd max price impact in arb glvs
gmxer Dec 20, 2024
12bbf19
Add INJ and DYDX configs
dmax10 Dec 22, 2024
ec4bcce
increase XRP GLV cap
gdev8317 Dec 22, 2024
a0aceb5
increase XRP GLV cap
gdev8317 Dec 23, 2024
8bf26d0
increase XRP GLV cap
gdev8317 Dec 23, 2024
ccb31d7
increase XRP GLV cap
gmxer Dec 23, 2024
4ffb6e1
increase XRP GLV cap
gmxer Dec 23, 2024
d2a889e
increase XRP deposit cap
gmxer Dec 23, 2024
5816866
reduce XRP max OI
gdev8317 Dec 23, 2024
3db4ca6
Merge pull request #90 from gmx-io/inj-dydx-configs
gmxer Dec 24, 2024
d929c7d
update print market funding scripts
gdev8317 Dec 25, 2024
9163da7
calculate incentives for epoch dec 18
gdev8317 Dec 25, 2024
7ea9793
update batch sender and other scripts with prompts
gdev8317 Dec 25, 2024
5d143e0
distribute incentives
gdev8317 Dec 25, 2024
e2e91a6
upd glv caps
gmxer Dec 26, 2024
e2bd8f5
temporary ignore new markets in eth glv
gmxer Dec 26, 2024
9b07826
print market name when updating glv
gmxer Dec 26, 2024
93825da
upd ltc eth glv cap
gmxer Dec 26, 2024
61b6f65
enable new markets in glv
gmxer Dec 26, 2024
179cd63
update funding config, disable threshold for decrease and min funding…
gdev8317 Dec 26, 2024
6cf23d6
upd wld ltc glv caps
gmxer Dec 26, 2024
86ba178
upd glv caps
gmxer Dec 27, 2024
5a5d4e3
update typings
xdev10 Dec 30, 2024
c741dbb
upd glv caps
gmxer Dec 30, 2024
b8100d5
calculate avalanche incentives
gdev8317 Jan 1, 2025
df243b8
distribute avalanche incentives
gdev8317 Jan 1, 2025
aa8aaf7
increase GLV cap for RENDER and EIGEN
gdev8317 Jan 3, 2025
6d29f95
refactor batchSend
gdev8317 Jan 3, 2025
d6f8d15
reduce open/close fees to 6/4, enable liq fees for all markets, arbitrum
gdev8317 Jan 6, 2025
1eb5528
increase AVAX pool caps on Avalanche
gdev8317 Jan 6, 2025
a385242
calculate incentives for epoch jan 1
gdev8317 Jan 8, 2025
052ded8
increase baseBorrowingFactor
gdev8317 Jan 8, 2025
fa6c405
increase shiftMaxPriceImpactFactor to 0.025%
gdev8317 Jan 8, 2025
faa985b
distribute avalanche incentives for epoch jan 1
gdev8317 Jan 9, 2025
e00078d
update open/close fee for SA markets with zero impact to 5 bps flat
gdev8317 Jan 9, 2025
201eb06
enable tiny price impact for signle asset markets to fix open/close fee
gdev8317 Jan 10, 2025
cf1b8c3
fix markets position impact validation
gdev8317 Jan 10, 2025
b44b280
fix markets position impact validation
gdev8317 Jan 10, 2025
6d1e1dd
restore default open/close fee for single asset markets
gdev8317 Jan 10, 2025
febadef
update logging of updateMarketConfig
gdev8317 Jan 10, 2025
cd61bbc
update max oi for single asset markets to match risk oracle
gdev8317 Jan 10, 2025
b39d4b6
update price impact settings for single asset markets
gdev8317 Jan 10, 2025
268a216
update max pool amounts for XRP
gdev8317 Jan 12, 2025
3b817ba
adjust max token pool amounts
gdev8317 Jan 12, 2025
71bb4b5
update positionImpactExponentFactor for SA markets
gdev8317 Jan 12, 2025
6920c56
update max pool amounts for XRP
gdev8317 Jan 12, 2025
a03be65
update max pool amounts for XRP
gdev8317 Jan 12, 2025
023e813
Merge branch 'updates' of github.com:gmx-io/gmx-synthetics into updates
gdev8317 Jan 12, 2025
bc096f8
update XRP borrowing config to kink model
gdev8317 Jan 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 13 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -646,16 +646,22 @@ After the initial setup:

- GM tokens could become illiquid due to high pnl factor or high reserved usd. Users can deposit illiquid GM tokens into GVL and withdraw liquidity from a different market, leaving the GLV with illiquid tokens. The glvMaxMarketTokenBalanceUsd and glvMaxMarketTokenBalanceAmount parameters should account for the riskiness of a market to avoid having too many GM tokens from a risky market.

## Other
## Factories

- Upon adding a Market with the MarketStoreUtils.set function, the Market is given a lookup where the Market address can be obtained with the Market salt. This lookup is not cleared upon market deletion. The same applies to GLV.

## Deployment Notes
# Notes

## Deployment

- `scripts/verifyFallback.ts` can be used to verify contracts
- One MarketToken contract would need to be verified using `npx hardhat verify`, thereafter all MarketToken contracts should be verified as the source code would be the same

## Upgrade Notes
## Configuration

- The `MAX_ORACLE_REF_PRICE_DEVIATION_FACTOR` is used mainly as a sanity check to help guard against incorrect oracle decimal configuration or incorrect price feed configuration, this should be set to a sufficiently high value to prevent reverts during times of high volatility

## Upgrades

- If new contracts are added that may lead to a difference in pricing, e.g. of market tokens between the old and new contracts, then care should be taken to disable the old contracts before the new contracts are enabled

Expand All @@ -675,7 +681,7 @@ After the initial setup:

- If the referral system is being used, the OrderHandler should be given access to update the referral code for traders

## Integration Notes
## Integrations

- Deposits, withdrawals and orders may be cancelled if the requirements specified in the request cannot be fulfilled, e.g. min amount out. Do check where funds and gas refunds will be sent to on cancellation to ensure it matches expectations.

Expand Down Expand Up @@ -739,7 +745,7 @@ After the initial setup:

- Fee rates change depending on whether there is a positive or negative impact

### Deposit Notes
### Deposits

- Consider PnL Factor when estimating GM price

Expand All @@ -761,7 +767,7 @@ After the initial setup:

- The first deposit in any market must go to the RECEIVER_FOR_FIRST_DEPOSIT

### Withdrawal Notes
### Withdrawals

- Two minimum outputs must be used for withdrawals

Expand All @@ -781,7 +787,7 @@ After the initial setup:

- Withdrawals are not allowed above the MAX_PNL_FACTOR_FOR_WITHDRAWALS

### Order Notes
### Orders

- Handle order cancellations

Expand Down
2 changes: 1 addition & 1 deletion config/buyback.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export type BuybackConfig = {
maxPriceAge: number;
};

export default async function (hre: HardhatRuntimeEnvironment): Promise {
export default async function (hre: HardhatRuntimeEnvironment): Promise<BuybackConfig> {
const defaultEmptyConfig = {
batchAmounts: [],
gmxFactors: [],
Expand Down
4 changes: 3 additions & 1 deletion config/general.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ export default async function ({ network }: HardhatRuntimeEnvironment) {
positionFeeReceiverFactor: 0,
swapFeeReceiverFactor: 0,
borrowingFeeReceiverFactor: 0,
liquidationFeeReceiverFactor: 0,

skipBorrowingFeeForSmallerSide: false,
};
Expand Down Expand Up @@ -111,6 +112,7 @@ export default async function ({ network }: HardhatRuntimeEnvironment) {
positionFeeReceiverFactor: decimalToFloat(37, 2), // 37%
swapFeeReceiverFactor: decimalToFloat(37, 2), // 37%
borrowingFeeReceiverFactor: decimalToFloat(37, 2), // 37%
liquidationFeeReceiverFactor: decimalToFloat(37, 2), // 37%

skipBorrowingFeeForSmallerSide: true,
};
Expand All @@ -125,7 +127,7 @@ export default async function ({ network }: HardhatRuntimeEnvironment) {
arbitrum: {
maxAutoCancelOrders: 11,
maxTotalCallbackGasLimitForAutoCancelOrders: 10_000_000,
maxCallbackGasLimit: 4_000_000,
maxCallbackGasLimit: 5_000_000,
estimatedGasPerOraclePrice: false,
executionGasPerOraclePrice: false,
estimatedGasFeeBaseAmount: false,
Expand Down
125 changes: 95 additions & 30 deletions config/glvs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ export default async function ({ network }: HardhatRuntimeEnvironment) {
address: "0x528A5bac7E746C9A509A1f4F6dF58A03d44279F9",
longToken: "WETH",
shortToken: "USDC",
shiftMaxPriceImpactFactor: percentageToFloat("0.1%"),
shiftMinInterval: 60 * 60, // 1 hour
shiftMaxPriceImpactFactor: percentageToFloat("0.025%"),
shiftMinInterval: 30 * 60, // 30 minutes
minTokensForFirstGlvDeposit: expandDecimals(1, 18),
markets: [
{
Expand All @@ -46,18 +46,18 @@ export default async function ({ network }: HardhatRuntimeEnvironment) {
},
{
indexToken: "DOGE",
glvMaxMarketTokenBalanceAmount: expandDecimals(4_000_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(7_000_000),
glvMaxMarketTokenBalanceAmount: expandDecimals(5_600_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(11_000_000),
},
{
indexToken: "LTC",
glvMaxMarketTokenBalanceAmount: expandDecimals(500_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(750_000),
glvMaxMarketTokenBalanceAmount: expandDecimals(1_031_071, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(1_866_240),
},
{
indexToken: "XRP",
glvMaxMarketTokenBalanceAmount: expandDecimals(670_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(1_000_000),
glvMaxMarketTokenBalanceAmount: expandDecimals(3_150_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(5_000_000),
},
{
indexToken: "ATOM",
Expand All @@ -71,13 +71,13 @@ export default async function ({ network }: HardhatRuntimeEnvironment) {
},
{
indexToken: "SHIB",
glvMaxMarketTokenBalanceAmount: expandDecimals(877_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(1_000_000),
glvMaxMarketTokenBalanceAmount: expandDecimals(870_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(1_200_000),
},
{
indexToken: "EIGEN",
glvMaxMarketTokenBalanceAmount: expandDecimals(842_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(1_000_000),
glvMaxMarketTokenBalanceAmount: expandDecimals(1_150_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(1_500_000),
},
{
indexToken: "UNI",
Expand All @@ -101,8 +101,8 @@ export default async function ({ network }: HardhatRuntimeEnvironment) {
},
{
indexToken: "SUI",
glvMaxMarketTokenBalanceAmount: expandDecimals(3_000_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(3_000_000),
glvMaxMarketTokenBalanceAmount: expandDecimals(6_101_694, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(7_200_000),
},
{
indexToken: "SEI",
Expand All @@ -111,18 +111,18 @@ export default async function ({ network }: HardhatRuntimeEnvironment) {
},
{
indexToken: "APT",
glvMaxMarketTokenBalanceAmount: expandDecimals(350_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(350_000),
glvMaxMarketTokenBalanceAmount: expandDecimals(500_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(600_000),
},
{
indexToken: "TIA",
glvMaxMarketTokenBalanceAmount: expandDecimals(1_000_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(1_000_000),
glvMaxMarketTokenBalanceAmount: expandDecimals(1_904_761, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(2_400_000),
},
{
indexToken: "TON",
glvMaxMarketTokenBalanceAmount: expandDecimals(500_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(500_000),
glvMaxMarketTokenBalanceAmount: expandDecimals(850_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(1_000_000),
},
{
indexToken: "TRX",
Expand All @@ -136,8 +136,13 @@ export default async function ({ network }: HardhatRuntimeEnvironment) {
},
{
indexToken: "WLD",
glvMaxMarketTokenBalanceAmount: expandDecimals(500_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(500_000),
glvMaxMarketTokenBalanceAmount: expandDecimals(968_971, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(1_036_800),
},
{
indexToken: "RENDER",
glvMaxMarketTokenBalanceAmount: expandDecimals(850_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(850_000),
},
],
},
Expand All @@ -147,8 +152,8 @@ export default async function ({ network }: HardhatRuntimeEnvironment) {
address: "0xdF03EEd325b82bC1d4Db8b49c30ecc9E05104b96",
longToken: "WBTC.e",
shortToken: "USDC",
shiftMaxPriceImpactFactor: percentageToFloat("0.1%"),
shiftMinInterval: 60 * 60, // 1 hour
shiftMaxPriceImpactFactor: percentageToFloat("0.025%"),
shiftMinInterval: 30 * 60, // 30 minutes
minTokensForFirstGlvDeposit: expandDecimals(1, 18),
markets: [
{
Expand All @@ -173,9 +178,69 @@ export default async function ({ network }: HardhatRuntimeEnvironment) {
},
{
indexToken: "TAO",
glvMaxMarketTokenBalanceAmount: expandDecimals(769_230, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(900_000),
},
{
indexToken: "BOME",
glvMaxMarketTokenBalanceAmount: expandDecimals(500_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(500_000),
},
{
indexToken: "MEME",
glvMaxMarketTokenBalanceAmount: expandDecimals(500_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(500_000),
},
{
indexToken: "FLOKI",
glvMaxMarketTokenBalanceAmount: expandDecimals(500_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(500_000),
},
{
indexToken: "MEW",
glvMaxMarketTokenBalanceAmount: expandDecimals(500_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(500_000),
},
{
indexToken: "ADA",
glvMaxMarketTokenBalanceAmount: expandDecimals(1_000_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(1_000_000),
},
{
indexToken: "XLM",
glvMaxMarketTokenBalanceAmount: expandDecimals(1_000_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(1_000_000),
},
{
indexToken: "BCH",
glvMaxMarketTokenBalanceAmount: expandDecimals(500_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(500_000),
},
{
indexToken: "DOT",
glvMaxMarketTokenBalanceAmount: expandDecimals(1_080_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(1_080_000),
},
{
indexToken: "ICP",
glvMaxMarketTokenBalanceAmount: expandDecimals(750_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(750_000),
},
{
indexToken: "FIL",
glvMaxMarketTokenBalanceAmount: expandDecimals(600_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(600_000),
},
{
indexToken: "INJ",
glvMaxMarketTokenBalanceAmount: expandDecimals(500_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(500_000),
},
{
indexToken: "DYDX",
glvMaxMarketTokenBalanceAmount: expandDecimals(300_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(300_000),
},
],
},
],
Expand All @@ -192,23 +257,23 @@ export default async function ({ network }: HardhatRuntimeEnvironment) {
markets: [
{
indexToken: "WAVAX",
glvMaxMarketTokenBalanceAmount: expandDecimals(3_385_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(6_500_000),
glvMaxMarketTokenBalanceAmount: expandDecimals(2_888_888, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(7_800_000),
},
{
indexToken: "XRP",
glvMaxMarketTokenBalanceAmount: expandDecimals(74_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(150_000),
glvMaxMarketTokenBalanceAmount: expandDecimals(170901, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(311_040),
},
{
indexToken: "DOGE",
glvMaxMarketTokenBalanceAmount: expandDecimals(80_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(170_000),
glvMaxMarketTokenBalanceUsd: decimalToFloat(240_000),
},
{
indexToken: "LTC",
glvMaxMarketTokenBalanceAmount: expandDecimals(46_000, 18),
glvMaxMarketTokenBalanceUsd: decimalToFloat(125_000),
glvMaxMarketTokenBalanceUsd: decimalToFloat(150_000),
},
],
},
Expand Down
Loading