Skip to content

Commit

Permalink
fix liquidate arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
mn13 committed Jul 31, 2024
1 parent 82aab14 commit 6171b90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/infrastructure/soroban/contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export async function getDebtCoeff(rpc: SorobanRpc.Server, token: string): Promi
}

export async function liquidate(rpc: SorobanRpc.Server, who: string): Promise<void> {
return call(rpc, POOL_ID, "liquidate", Address.fromString(LIQUIDATOR_ADDRESS).toScVal(), Address.fromString(who).toScVal(), xdr.ScVal.scvBool(false));
return call(rpc, POOL_ID, "liquidate", Address.fromString(LIQUIDATOR_ADDRESS).toScVal(), Address.fromString(who).toScVal());
}

async function simulateTransaction<T>(
Expand Down

0 comments on commit 6171b90

Please sign in to comment.