From fee96691103d2621ccf7757aa56bb024d0953105 Mon Sep 17 00:00:00 2001 From: Austin Date: Tue, 17 Sep 2024 14:18:00 -0500 Subject: [PATCH] fix: money market withdraw collateral msg --- .changeset/itchy-bags-allow.md | 5 +++++ src/contracts/definitions/moneyMarket.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/itchy-bags-allow.md diff --git a/.changeset/itchy-bags-allow.md b/.changeset/itchy-bags-allow.md new file mode 100644 index 0000000..da04136 --- /dev/null +++ b/.changeset/itchy-bags-allow.md @@ -0,0 +1,5 @@ +--- +"@shadeprotocol/shadejs": patch +--- + +fix withdraw collateral msg diff --git a/src/contracts/definitions/moneyMarket.ts b/src/contracts/definitions/moneyMarket.ts index 002d841..e4938b9 100644 --- a/src/contracts/definitions/moneyMarket.ts +++ b/src/contracts/definitions/moneyMarket.ts @@ -82,7 +82,7 @@ function msgMoneyMarketWithdrawCollateral({ collateralTokenAddress: string, }) { return { - deposit_collateral: { + withdraw_collateral: { token: collateralTokenAddress, amount: withdrawAmount, },