@triadxyz/triad-protocol 2.9.1-beta → 2.9.3-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1052,7 +1052,7 @@ class TriadProtocolClient {
1052
1052
  wallet: this.program.provider.publicKey.toBase58(),
1053
1053
  inToken: constants_1.USDC_MINT.toBase58(),
1054
1054
  outToken: constants_1.TRD_MINT.toString(),
1055
- amount: amountOfUSDC.toNumber()
1055
+ amount: amountOfUSDC.toNumber() / Math.pow(10, 6)
1056
1056
  });
1057
1057
  if (swapIxs.length > 0) {
1058
1058
  ixs.push(...setupInstructions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "2.9.1-beta",
3
+ "version": "2.9.3-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",