Skip to content

Commit

Permalink
update ex units
Browse files Browse the repository at this point in the history
  • Loading branch information
rsalakhov committed Jan 30, 2024
1 parent a9c0e63 commit c47bca4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@spectrumlabs/cardano-dex-sdk",
"version": "0.1.261",
"version": "0.1.262",
"description": "ErgoDEX SDK for Cardano",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
Expand Down
5 changes: 3 additions & 2 deletions src/amm/interpreters/ammTxBuilder/unlockTxBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {CardanoWasm} from "../../../utils/rustLoader"
import {AmmTxFeeMapping} from "../../math/order"
import {OpInRefsMainnetV1, OrderAddrs, ScriptCreds} from "../../scripts"
import {selectInputs} from "./selectInputs"
import {DEFAULT_EX_UNITS_MEM, DEFAULT_EX_UNITS_STEPS} from "../refundTxBuilder/refundTxBuilder"

export interface UnlockParams {
readonly changeAddress: Addr;
Expand Down Expand Up @@ -85,8 +86,8 @@ export class UnlockTxBuilder {
datum: boxToUnlock.dataBin,
validator: this.scripts.ammLock,
redeemer: this.R.PlutusData.new_integer(this.R.BigInt.from_str("0")).to_hex(),
mem: "200000",
steps: "70000000"
mem: DEFAULT_EX_UNITS_MEM,
steps: DEFAULT_EX_UNITS_STEPS
}
}, ...inputsOrError]
const rewardPKH = params.redeemer
Expand Down

0 comments on commit c47bca4

Please sign in to comment.