From 955430796063071f07e43174ea23570de9a5d721 Mon Sep 17 00:00:00 2001 From: Noisekit Date: Mon, 8 Apr 2024 08:34:55 +0800 Subject: [PATCH] Solve the limit once and for all --- .../Liquidity_Provider.e2e.js | 6 +++--- .../Rewards_SNX.e2e.js | 17 +++++++++++++++++ .../Rewards_USDC.e2e.js | 17 +++++++++++++++++ 3 files changed, 37 insertions(+), 3 deletions(-) diff --git a/e2e/tests/omnibus-base-mainnet-andromeda.toml/Liquidity_Provider.e2e.js b/e2e/tests/omnibus-base-mainnet-andromeda.toml/Liquidity_Provider.e2e.js index 510f9ca4c..84efd221e 100644 --- a/e2e/tests/omnibus-base-mainnet-andromeda.toml/Liquidity_Provider.e2e.js +++ b/e2e/tests/omnibus-base-mainnet-andromeda.toml/Liquidity_Provider.e2e.js @@ -109,16 +109,16 @@ describe(require('path').basename(__filename, '.e2e.js'), function () { ); }); - it('should increase max collateral for the test to 10_000_000', async () => { + it('should increase max collateral for the test to 1_000_000_000_000', async () => { await configureMaximumMarketCollateral({ marketId: require('../../deployments/extras.json').synth_usdc_market_id, symbol: 'USDC', - targetAmount: String(10_000_000), + targetAmount: String(1_000_000_000_000), }); await setSpotWrapper({ marketId: require('../../deployments/extras.json').synth_usdc_market_id, symbol: 'USDC', - targetAmount: String(10_000_000), + targetAmount: String(1_000_000_000_000), }); }); diff --git a/e2e/tests/omnibus-base-mainnet-andromeda.toml/Rewards_SNX.e2e.js b/e2e/tests/omnibus-base-mainnet-andromeda.toml/Rewards_SNX.e2e.js index 564a7ea18..2f2157bd7 100644 --- a/e2e/tests/omnibus-base-mainnet-andromeda.toml/Rewards_SNX.e2e.js +++ b/e2e/tests/omnibus-base-mainnet-andromeda.toml/Rewards_SNX.e2e.js @@ -29,6 +29,10 @@ const { } = require('../../tasks/getTokenRewardsDistributorRewardsAmount'); const { getAvailableRewards } = require('../../tasks/getAvailableRewards'); const { claimRewards } = require('../../tasks/claimRewards'); +const { setSpotWrapper } = require('../../tasks/setSpotWrapper'); +const { + configureMaximumMarketCollateral, +} = require('../../tasks/configureMaximumMarketCollateral'); const { contracts: { @@ -156,6 +160,19 @@ describe(require('path').basename(__filename, '.e2e.js'), function () { ); }); + it('should increase max collateral for the test to 1_000_000_000_000', async () => { + await configureMaximumMarketCollateral({ + marketId: require('../../deployments/extras.json').synth_usdc_market_id, + symbol: 'USDC', + targetAmount: String(1_000_000_000_000), + }); + await setSpotWrapper({ + marketId: require('../../deployments/extras.json').synth_usdc_market_id, + symbol: 'USDC', + targetAmount: String(1_000_000_000_000), + }); + }); + it(`should wrap 1_000 USDC`, async () => { const balance = await wrapCollateral({ wallet, symbol: 'USDC', amount: 1_000 }); assert.equal(balance, 1_000); diff --git a/e2e/tests/omnibus-base-mainnet-andromeda.toml/Rewards_USDC.e2e.js b/e2e/tests/omnibus-base-mainnet-andromeda.toml/Rewards_USDC.e2e.js index 1207d7587..91419540a 100644 --- a/e2e/tests/omnibus-base-mainnet-andromeda.toml/Rewards_USDC.e2e.js +++ b/e2e/tests/omnibus-base-mainnet-andromeda.toml/Rewards_USDC.e2e.js @@ -38,6 +38,10 @@ const { SynthUSDCToken: collateralType, }, } = require('../../deployments/meta.json'); +const { setSpotWrapper } = require('../../tasks/setSpotWrapper'); +const { + configureMaximumMarketCollateral, +} = require('../../tasks/configureMaximumMarketCollateral'); describe(require('path').basename(__filename, '.e2e.js'), function () { const accountId = parseInt(`1337${crypto.randomInt(1000)}`); @@ -150,6 +154,19 @@ describe(require('path').basename(__filename, '.e2e.js'), function () { ); }); + it('should increase max collateral for the test to 1_000_000_000_000', async () => { + await configureMaximumMarketCollateral({ + marketId: require('../../deployments/extras.json').synth_usdc_market_id, + symbol: 'USDC', + targetAmount: String(1_000_000_000_000), + }); + await setSpotWrapper({ + marketId: require('../../deployments/extras.json').synth_usdc_market_id, + symbol: 'USDC', + targetAmount: String(1_000_000_000_000), + }); + }); + it(`should wrap 1_000 USDC`, async () => { const balance = await wrapCollateral({ wallet, symbol: 'USDC', amount: 1_000 }); assert.equal(balance, 1_000);