Skip to content

Commit

Permalink
fix: add module quote return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Bob Lu committed Jul 22, 2024
1 parent af967c4 commit bce0903
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/modules/aavev2/logic.deposit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class DepositLogics extends core.Logic {
this.service = service;
}

async quote(params: DepositLogicParams) {
async quote(params: DepositLogicParams): Promise<DepositLogicFields> {
const { input, tokenOut } = params;
const output = new common.TokenAmount(tokenOut, input.amount);

Expand Down
2 changes: 1 addition & 1 deletion src/modules/aavev2/logic.withdraw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export class WithdrawLogic extends core.Logic {
this.service = service;
}

async quote(params: WithdrawLogicParams) {
async quote(params: WithdrawLogicParams): Promise<WithdrawLogicFields> {
const { input, tokenOut } = params;
const output = new common.TokenAmount(tokenOut, input.amount);

Expand Down
2 changes: 1 addition & 1 deletion src/modules/aavev3/logic.supply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class SupplyLogics extends core.Logic {
return tokenList;
}

async quote(params: SupplyLogicParams) {
async quote(params: SupplyLogicParams): Promise<SupplyLogicFields> {
const { input, tokenOut } = params;
const output = new common.TokenAmount(tokenOut, input.amount);

Expand Down
2 changes: 1 addition & 1 deletion src/modules/aavev3/logic.withdraw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ export class WithdrawLogic extends core.Logic {
return tokenList;
}

async quote(params: WithdrawLogicParams) {
async quote(params: WithdrawLogicParams): Promise<WithdrawLogicFields> {
const { input, tokenOut } = params;
const output = new common.TokenAmount(tokenOut, input.amount);

Expand Down

0 comments on commit bce0903

Please sign in to comment.