Skip to content

Commit

Permalink
Increase diff in tests for deprecated Mooniswap
Browse files Browse the repository at this point in the history
  • Loading branch information
zZoMROT committed Feb 27, 2024
1 parent 69307cf commit 20025dd
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/oracles/MooniswapOracle.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,26 +15,26 @@ describe('MooniswapOracle', function () {

it('ETH -> DAI', async function () {
const { mooniswapOracle, uniswapV3Oracle } = await loadFixture(initContracts);
await testRate([tokens.ETH, tokens.WETH], tokens.DAI, tokens.NONE, mooniswapOracle, uniswapV3Oracle);
await testRate([tokens.ETH, tokens.WETH], tokens.DAI, tokens.NONE, mooniswapOracle, uniswapV3Oracle, 0.2);
});

it('DAI -> ETH', async function () {
const { mooniswapOracle, uniswapV3Oracle } = await loadFixture(initContracts);
await testRate(tokens.DAI, [tokens.ETH, tokens.WETH], tokens.NONE, mooniswapOracle, uniswapV3Oracle);
await testRate(tokens.DAI, [tokens.ETH, tokens.WETH], tokens.NONE, mooniswapOracle, uniswapV3Oracle, 0.2);
});

it('ETH -> USDC', async function () {
const { mooniswapOracle, uniswapV3Oracle } = await loadFixture(initContracts);
await testRate([tokens.ETH, tokens.WETH], tokens.USDC, tokens.NONE, mooniswapOracle, uniswapV3Oracle);
await testRate([tokens.ETH, tokens.WETH], tokens.USDC, tokens.NONE, mooniswapOracle, uniswapV3Oracle, 0.2);
});

it('USDC -> 1INCH', async function () {
const { mooniswapOracle, uniswapV3Oracle } = await loadFixture(initContracts);
await testRate(tokens.USDC, tokens['1INCH'], tokens.NONE, mooniswapOracle, uniswapV3Oracle, 0.06);
await testRate(tokens.USDC, tokens['1INCH'], tokens.NONE, mooniswapOracle, uniswapV3Oracle, 0.2);
});

it('ETH -> USDC -> 1INCH', async function () {
const { mooniswapOracle, uniswapV3Oracle } = await loadFixture(initContracts);
await testRate([tokens.ETH, tokens.WETH], tokens['1INCH'], tokens.USDC, mooniswapOracle, uniswapV3Oracle, 0.075);
await testRate([tokens.ETH, tokens.WETH], tokens['1INCH'], tokens.USDC, mooniswapOracle, uniswapV3Oracle, 0.2);
});
});

0 comments on commit 20025dd

Please sign in to comment.