Skip to content

Commit

Permalink
add logs to create pool op #4
Browse files Browse the repository at this point in the history
  • Loading branch information
rsalakhov committed Sep 8, 2023
1 parent 0aa6c0a commit 5ca4c61
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
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.187",
"version": "0.1.188",
"description": "ErgoDEX SDK for Cardano",
"main": "build/main/index.js",
"typings": "build/main/index.d.ts",
Expand Down
4 changes: 4 additions & 0 deletions src/amm/interpreters/ammTxBuilder/poolCreationTxBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,10 @@ export class PoolCreationTxBuilder {
const requiredAdaForUserLqOutput = this.txMath.minAdaRequiredforOutput(userLqOutput)
const lovelace = getLovelace(poolValue)

console.log('requiredAdaForPoolOutput = ', requiredAdaForPoolOutput);
console.log('requiredAdaForUserLqOutput = ', requiredAdaForUserLqOutput);
console.log('poolValue', poolValue);

return lovelace.amount >= requiredAdaForPoolOutput ?
[
poolValue,
Expand Down

0 comments on commit 5ca4c61

Please sign in to comment.