From 3a757043f5b7fdf0e2c8b96d493171c367c4e720 Mon Sep 17 00:00:00 2001 From: "Miquel A. Cabot" Date: Mon, 2 May 2022 22:23:52 +0200 Subject: [PATCH] rename liquidityAccount to stakerAccount --- test/integration/MarketplaceFlow.test.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/test/integration/MarketplaceFlow.test.ts b/test/integration/MarketplaceFlow.test.ts index 88181504..804d2029 100644 --- a/test/integration/MarketplaceFlow.test.ts +++ b/test/integration/MarketplaceFlow.test.ts @@ -110,7 +110,7 @@ describe('Marketplace flow tests', async () => { let providerUrl: any let publisherAccount: string let consumerAccount: string - let liquidityAccount: string + let stakerAccount: string let contracts: Addresses let poolNftAddress: string let poolDatatokenAddress: string @@ -189,11 +189,11 @@ describe('Marketplace flow tests', async () => { const accounts = await web3.eth.getAccounts() publisherAccount = accounts[0] consumerAccount = accounts[1] - liquidityAccount = accounts[2] + stakerAccount = accounts[2] console.log(`Publisher account address: ${publisherAccount}`) console.log(`Consumer account address: ${consumerAccount}`) - console.log(`Liquidity account address: ${liquidityAccount}`) + console.log(`Staker account address: ${stakerAccount}`) }) /// ``` @@ -203,7 +203,7 @@ describe('Marketplace flow tests', async () => { }) /// ``` - it('We send some OCEAN to consumer and liquidity accounts', async () => { + it('We send some OCEAN to consumer and staker accounts', async () => { /// ```Typescript const oceanContract = new web3.eth.Contract( MockERC20.abi as AbiItem[], @@ -215,7 +215,7 @@ describe('Marketplace flow tests', async () => { .send({ from: publisherAccount }) await oceanContract.methods - .transfer(liquidityAccount, web3.utils.toWei('100')) + .transfer(stakerAccount, web3.utils.toWei('100')) .send({ from: publisherAccount }) }) /// ``` @@ -321,9 +321,9 @@ describe('Marketplace flow tests', async () => { /// ```Typescript const pool = new Pool(web3) - await approve(web3, liquidityAccount, contracts.oceanAddress, poolAddress, '5', true) + await approve(web3, stakerAccount, contracts.oceanAddress, poolAddress, '5', true) - await pool.joinswapExternAmountIn(liquidityAccount, poolAddress, '5', '0.1') + await pool.joinswapExternAmountIn(stakerAccount, poolAddress, '5', '0.1') }) /// ```