Skip to content

Commit

Permalink
fix(liquidity-sdk-viem): fix parameter default value
Browse files Browse the repository at this point in the history
  • Loading branch information
oumar-fall committed Jan 24, 2025
1 parent 047abc4 commit d7c76d6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/liquidity-sdk-viem/src/loader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export interface LiquidityParameters {

/**
* - If `false`, `defaultMaxWithdrawalUtilization` is used for each market
* - If `true`, the value for maxWithdrawUtilization is taken per-market from morpho API
* - If `true` (default), the value for maxWithdrawUtilization is taken per-market from morpho API
*/
fetchMaxWithdrawUtilizations?: boolean;
}
Expand All @@ -46,6 +46,8 @@ export class LiquidityLoader<chain extends Chain = Chain> {
public client: Client<Transport, chain>,
public readonly parameters: LiquidityParameters = {},
) {
this.parameters.fetchMaxWithdrawUtilizations ??= true;

this.dataLoader = new DataLoader(
async (marketIds) => {
const { client, parameters } = this;
Expand Down

0 comments on commit d7c76d6

Please sign in to comment.