Skip to content

Commit

Permalink
fix: Fix typos (#486)
Browse files Browse the repository at this point in the history
  • Loading branch information
rex4539 authored Feb 3, 2023
1 parent eebbb69 commit db4cef5
Show file tree
Hide file tree
Showing 7 changed files with 55 additions and 55 deletions.
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,5 +116,5 @@ also in the package.json paste these in:
"types": "./dist/esm/index.d.ts",
```

Thats it now start writing your logic, you must write your typescript code in
That's it. Now start writing your logic. You must write your typescript code in
the `src` folder in your package.
86 changes: 43 additions & 43 deletions README.md

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions packages/contract-helpers/src/commons/BaseService.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ describe('BaseService', () => {
afterEach(() => {
jest.clearAllMocks();
});
it('Expects to initalize new instance', () => {
it('Expects to initialize new instance', () => {
const spy = jest.spyOn(Test__factory, 'connect');

const baseService = new BaseService(provider, Test__factory);
Expand Down Expand Up @@ -90,7 +90,7 @@ describe('BaseService', () => {
expect(tx.value).toEqual(DEFAULT_NULL_VALUE_ON_TX);
expect(tx.gasLimit).toEqual(BigNumber.from(1));
});
it('Expects a tx object with recomended gas limit', async () => {
it('Expects a tx object with recommended gas limit', async () => {
const txCallback = baseService.generateTxCallback({
rawTxMethod,
from,
Expand Down
2 changes: 1 addition & 1 deletion packages/contract-helpers/src/commons/BaseService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ export default class BaseService<T extends Contract> {
const { gasLimit, gasPrice: gasPriceProv }: transactionType =
await txCallback();
if (!gasLimit) {
// If we don't recieve the correct gas we throw a error
// If we don't receive the correct gas we throw an error
throw new Error('Transaction calculation error');
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1053,7 +1053,7 @@ describe('LendingPool', () => {
gasLimitRecommendations[ProtocolAction.repay].recommended,
);
});
it('Expects the tx object passing all params with amount -1 with approve needed and reate stable', async () => {
it('Expects the tx object passing all params with amount -1 with approve needed and rate stable', async () => {
const lendingPoolInstance = new LendingPool(provider, config);
const isApprovedSpy = jest
.spyOn(lendingPoolInstance.erc20Service, 'isApproved')
Expand Down Expand Up @@ -1310,7 +1310,7 @@ describe('LendingPool', () => {
afterEach(() => {
jest.clearAllMocks();
});
it('Expects the tx object passing all params with Inerest rate None', async () => {
it('Expects the tx object passing all params with Interest rate None', async () => {
const lendingPoolInstance = new LendingPool(provider, config);

const swapBorrowRateModeTxObj = lendingPoolInstance.swapBorrowRateMode({
Expand Down Expand Up @@ -1343,7 +1343,7 @@ describe('LendingPool', () => {
expect(gasPrice?.gasLimit).toEqual('1');
expect(gasPrice?.gasPrice).toEqual('1');
});
it('Expects the tx object passing all params with Inerest rate Stable', async () => {
it('Expects the tx object passing all params with Interest rate Stable', async () => {
const lendingPoolInstance = new LendingPool(provider, config);
const interestRateMode = InterestRate.Stable;
const swapBorrowRateModeTxObj = lendingPoolInstance.swapBorrowRateMode({
Expand Down Expand Up @@ -1376,7 +1376,7 @@ describe('LendingPool', () => {
expect(gasPrice?.gasLimit).toEqual('1');
expect(gasPrice?.gasPrice).toEqual('1');
});
it('Expects the tx object passing all params with Inerest rate Variable', async () => {
it('Expects the tx object passing all params with Interest rate Variable', async () => {
const lendingPoolInstance = new LendingPool(provider, config);
const interestRateMode = InterestRate.Variable;
const swapBorrowRateModeTxObj = lendingPoolInstance.swapBorrowRateMode({
Expand Down
6 changes: 3 additions & 3 deletions packages/contract-helpers/src/v3-pool-contract/pool.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2086,7 +2086,7 @@ describe('Pool', () => {

expect(depositTxObj.length).toEqual(0);
});
it('Expects the tx object passing all params with amount -1 with approve needed and reate stable', async () => {
it('Expects the tx object passing all params with amount -1 with approve needed and rate stable', async () => {
const poolInstance = new Pool(provider, config);
const isApprovedSpy = jest
.spyOn(poolInstance.erc20Service, 'isApproved')
Expand Down Expand Up @@ -2444,7 +2444,7 @@ describe('Pool', () => {

expect(depositTxObj.length).toEqual(0);
});
it('Expects the tx object passing all params with amount -1 and reate stable', async () => {
it('Expects the tx object passing all params with amount -1 and rate stable', async () => {
const poolInstance = new Pool(provider, config);
const decimalsSpy = jest
.spyOn(poolInstance.erc20Service, 'decimalsOf')
Expand Down Expand Up @@ -5244,7 +5244,7 @@ describe('Pool', () => {
'Can not repay with aTokens with eth. Should be WETH instead',
);
});
it('Expects the tx object passing all params with amount -1 with reate stable', async () => {
it('Expects the tx object passing all params with amount -1 with rate stable', async () => {
const poolInstance = new Pool(provider, config);
const decimalsSpy = jest
.spyOn(poolInstance.erc20Service, 'decimalsOf')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export interface CalculateAccruedIncentivesRequest {
}

// Calculate incentives earned by user since reserveIndexTimestamp
// Incentives earned before reserveIndexTimestamp are tracked seperately (userUnclaimedRewards from UiIncentiveDataProvider)
// Incentives earned before reserveIndexTimestamp are tracked separately (userUnclaimedRewards from UiIncentiveDataProvider)
// This function is used for deposit, variableDebt, and stableDebt incentives
export function calculateAccruedIncentives({
principalUserBalance,
Expand Down

0 comments on commit db4cef5

Please sign in to comment.