From 690ef8d82b7ebbd612272c326100dcf7442cf5eb Mon Sep 17 00:00:00 2001 From: Marcelo Morgado Date: Wed, 24 Jun 2020 20:13:40 +0100 Subject: [PATCH] Removing non-deterministic test case --- docs/synthetix.md | 24 ------------------------ src/synthetix/contracts.ts | 2 +- tests/synthetix.test.ts | 18 ------------------ 3 files changed, 1 insertion(+), 43 deletions(-) diff --git a/docs/synthetix.md b/docs/synthetix.md index 99b9d4f..a228aa0 100644 --- a/docs/synthetix.md +++ b/docs/synthetix.md @@ -237,30 +237,6 @@ test("issue 100 sUSD tokens", async () => { }); ``` -### Shouldn't be able to transfer locked SNX tokens - -```js -// ../tests/synthetix.test.ts#L148-L164 - -test("shouldn't be able to transfer locked SNX tokens", async () => { - // given - const snxBalance = await snxContract.balanceOf(wallet.address); - const snxBalanceInFloat = parseFloat(fromWei(snxBalance)); - - const transferableSnx = await synthetixContract.transferableSynthetix( - wallet.address, - ); - const transferableSnxInFloat = parseFloat(fromWei(transferableSnx)); - - expect(transferableSnxInFloat).toBeLessThan(snxBalanceInFloat); - - // when-then - await expect( - snxContract.transfer(someAccount, snxBalance), - ).rejects.toThrow(); -}); -``` - ### Exchange from sUSD to sXAU ```js diff --git a/src/synthetix/contracts.ts b/src/synthetix/contracts.ts index a99e739..6f6f2f5 100644 --- a/src/synthetix/contracts.ts +++ b/src/synthetix/contracts.ts @@ -9,7 +9,7 @@ import DepotAbi from "./abi/Depot.json"; const contracts = { Synthetix: { abi: SynthetixAbi, - address: "0xC011A72400E58ecD99Ee497CF89E3775d4bd732F", + address: "0xc011a73ee8576fb46f5e1c5751ca3b9fe0af2a6f", }, ExchangeRates: { abi: ExchangeRatesAbi, diff --git a/tests/synthetix.test.ts b/tests/synthetix.test.ts index 6a4d103..87d2e77 100644 --- a/tests/synthetix.test.ts +++ b/tests/synthetix.test.ts @@ -145,24 +145,6 @@ describe("synthetix", () => { expect(fromWei(sUSDAfter)).toBe(fromWei(sUSDToMintInWei)); }); - test("shouldn't be able to transfer locked SNX tokens", async () => { - // given - const snxBalance = await snxContract.balanceOf(wallet.address); - const snxBalanceInFloat = parseFloat(fromWei(snxBalance)); - - const transferableSnx = await synthetixContract.transferableSynthetix( - wallet.address, - ); - const transferableSnxInFloat = parseFloat(fromWei(transferableSnx)); - - expect(transferableSnxInFloat).toBeLessThan(snxBalanceInFloat); - - // when-then - await expect( - snxContract.transfer(someAccount, snxBalance), - ).rejects.toThrow(); - }); - test("exchange from sUSD to sXAU", async () => { // given const sUSDBefore = await sUSDContract.balanceOf(wallet.address);