@triadxyz/triad-protocol 2.8.5-beta → 2.8.6-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
@@ -905,7 +905,7 @@ class TriadProtocolClient {
905
905
  wallet: this.program.provider.publicKey.toBase58(),
906
906
  inToken: constants_1.TRD_MINT.toString(),
907
907
  outToken: constants_1.USDC_MINT.toString(),
908
- amount: amountInTRD / Math.pow(10, this.decimals)
908
+ amount: Math.floor(amountInTRD / Math.pow(10, this.decimals))
909
909
  });
910
910
  if (swapIxs.length === 0) {
911
911
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@triadxyz/triad-protocol",
3
- "version": "2.8.5-beta",
3
+ "version": "2.8.6-beta",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",