@meteora-ag/cp-amm-sdk 1.0.1-rc.3 → 1.0.1-rc.5

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.
package/dist/index.js CHANGED
@@ -6805,9 +6805,8 @@ var getPriceImpact = (amount, amountWithoutSlippage) => {
6805
6805
  // src/CpAmm.ts
6806
6806
  var CpAmm = class {
6807
6807
  constructor(connection) {
6808
- this._program = new (0, _anchor.Program)(cp_amm_default, {
6809
- connection
6810
- });
6808
+ const provider = new (0, _anchor.AnchorProvider)(connection, {}, _anchor.AnchorProvider.defaultOptions());
6809
+ this._program = new (0, _anchor.Program)(cp_amm_default, provider);
6811
6810
  }
6812
6811
  getProgram() {
6813
6812
  return this._program;