Skip to content

Commit

Permalink
fix: add STX post condition for liq pool unstake
Browse files Browse the repository at this point in the history
  • Loading branch information
--global committed Nov 6, 2024
1 parent 550ce53 commit 0677ad4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion web/components/liquidations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ import {
standardPrincipalCV,
makeStandardFungiblePostCondition,
makeContractFungiblePostCondition,
makeContractSTXPostCondition,
FungibleConditionCode,
createAssetInfo,
listCV
Expand Down Expand Up @@ -175,7 +176,13 @@ export const Liquidations: React.FC = () => {
FungibleConditionCode.GreaterEqual,
0,
createAssetInfo(xbtcContractAddress, 'Wrapped-Bitcoin', 'wrapped-bitcoin')
)
),
makeContractSTXPostCondition(
contractAddress,
'arkadiko-vaults-pool-liq-v1-2',
FungibleConditionCode.GreaterEqual,
0
),
];

await doContractCall({
Expand Down

0 comments on commit 0677ad4

Please sign in to comment.