mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
fix-grammar: fixed typos
This commit is contained in:
parent
b591db752c
commit
3d3bdc2096
|
@ -30,7 +30,7 @@ makeSuite('LendingPool FlashLoan function', (testEnv: TestEnv) => {
|
||||||
before(async () => {
|
before(async () => {
|
||||||
_mockFlashLoanReceiver = await getMockFlashLoanReceiver();
|
_mockFlashLoanReceiver = await getMockFlashLoanReceiver();
|
||||||
});
|
});
|
||||||
it('Authorize a flash bororwer', async () => {
|
it('Authorize a flash borrower', async () => {
|
||||||
const { deployer, pool, weth, configurator } = testEnv;
|
const { deployer, pool, weth, configurator } = testEnv;
|
||||||
await configurator.authorizeFlashBorrower(deployer.address);
|
await configurator.authorizeFlashBorrower(deployer.address);
|
||||||
});
|
});
|
||||||
|
@ -92,7 +92,7 @@ makeSuite('LendingPool FlashLoan function', (testEnv: TestEnv) => {
|
||||||
|
|
||||||
const reserveData = await helpersContract.getReserveData(weth.address);
|
const reserveData = await helpersContract.getReserveData(weth.address);
|
||||||
|
|
||||||
const currentLiqudityRate = reserveData.liquidityRate;
|
const currentLiquidityRate = reserveData.liquidityRate;
|
||||||
const currentLiquidityIndex = reserveData.liquidityIndex;
|
const currentLiquidityIndex = reserveData.liquidityIndex;
|
||||||
|
|
||||||
const totalLiquidity = new BigNumber(reserveData.availableLiquidity.toString())
|
const totalLiquidity = new BigNumber(reserveData.availableLiquidity.toString())
|
||||||
|
@ -100,7 +100,7 @@ makeSuite('LendingPool FlashLoan function', (testEnv: TestEnv) => {
|
||||||
.plus(reserveData.totalVariableDebt.toString());
|
.plus(reserveData.totalVariableDebt.toString());
|
||||||
|
|
||||||
expect(totalLiquidity.toString()).to.be.equal('1000000000000000000');
|
expect(totalLiquidity.toString()).to.be.equal('1000000000000000000');
|
||||||
expect(currentLiqudityRate.toString()).to.be.equal('0');
|
expect(currentLiquidityRate.toString()).to.be.equal('0');
|
||||||
expect(currentLiquidityIndex.toString()).to.be.equal('1000000000000000000000000000');
|
expect(currentLiquidityIndex.toString()).to.be.equal('1000000000000000000000000000');
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -279,14 +279,14 @@ makeSuite('LendingPool FlashLoan function', (testEnv: TestEnv) => {
|
||||||
.add(reserveData.totalStableDebt)
|
.add(reserveData.totalStableDebt)
|
||||||
.add(reserveData.totalVariableDebt)
|
.add(reserveData.totalVariableDebt)
|
||||||
.toString();
|
.toString();
|
||||||
const currentLiqudityRate = reserveData.liquidityRate.toString();
|
const currentLiquidityRate = reserveData.liquidityRate.toString();
|
||||||
const currentLiquidityIndex = reserveData.liquidityIndex.toString();
|
const currentLiquidityIndex = reserveData.liquidityIndex.toString();
|
||||||
const currentUserBalance = userData.currentATokenBalance.toString();
|
const currentUserBalance = userData.currentATokenBalance.toString();
|
||||||
|
|
||||||
const expectedLiquidity = await convertToCurrencyDecimals(usdc.address, '1000');
|
const expectedLiquidity = await convertToCurrencyDecimals(usdc.address, '1000');
|
||||||
|
|
||||||
expect(totalLiquidity).to.be.equal(expectedLiquidity, 'Invalid total liquidity');
|
expect(totalLiquidity).to.be.equal(expectedLiquidity, 'Invalid total liquidity');
|
||||||
expect(currentLiqudityRate).to.be.equal('0', 'Invalid liquidity rate');
|
expect(currentLiquidityRate).to.be.equal('0', 'Invalid liquidity rate');
|
||||||
expect(currentLiquidityIndex).to.be.equal(
|
expect(currentLiquidityIndex).to.be.equal(
|
||||||
new BigNumber('1.00000').multipliedBy(oneRay).toFixed(),
|
new BigNumber('1.00000').multipliedBy(oneRay).toFixed(),
|
||||||
'Invalid liquidity index'
|
'Invalid liquidity index'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user