0.2.68 • Published 10 months ago

@rever22411/amm-commands v0.2.68

Weekly downloads
-
License
-
Repository
-
Last release
10 months ago

Amm (Work In Progress)

Concentrated liquidity market maker (CLMM) program built for the Solana ecosystem.

Concentrated Liquidity Market Maker (CLMM) pools allow liquidity providers to select a specific price range at which liquidity is active for trades within a pool. This is in contrast to constant product Automated Market Maker (AMM) pools, where all liquidity is spread out on a price curve from 0 to ∞. For LPs, CLMM design enables capital to be deployed with higher efficiency and earn increased yield from trading fees. For traders, CLMMs improve liquidity depth around the current price which translates to better prices and lower price impact on swaps. CLMM pools can be configured for pairs with different volatility.

Environment Setup

  1. Install Rust.
  2. Install Solana and then run solana-keygen new to create a keypair at the default location.
  3. install Anchor.

Quickstart

Clone the repository and enter the source code directory.

Build

anchor build

After building, the smart contract files are all located in the target directory.

Deploy

anchor deploy

Attention, check your configuration and confirm the environment you want to deploy.

Develop

  • anchor build create contracts target build
  • copy to /tests/src/src/program_types/ the /target/types/* files
  • copy to /tests/src/src/program_idl/ the /target/idl/* files

Description

  • una pool appena creata ha bisogna di una deposit (oltre a quello in creazione) per poter fare swap
  • quando chiudo un account Wsol il contentuto viene swappato in sol e inviato all'account indicato

Publish

  • update package.json version
  • npm i check all package install itself correctly and update lock
  • npm publish --access public publish package over npmjs.com

Prepare devnet

  • set .env.local variable: VITE_CHAIN=https://api.devnet.solana.com
  • anchor run pre_deploy launch test to prepare accounts (wip)

TODO

  • mergiare i due package.json in uno solo e usare npm ignore per rimuovere test e parti non necessarie

Testing

You can launch it with command clear && anchor test that launch file specified in package.json

0.2.68

10 months ago

0.2.67

10 months ago

0.2.66

10 months ago

0.2.65

10 months ago

0.2.64

10 months ago

0.2.63

10 months ago

0.2.62

10 months ago

0.2.61

10 months ago

0.2.60

10 months ago

0.2.51

11 months ago

0.2.50

11 months ago

0.2.58

11 months ago

0.2.57

11 months ago

0.2.56

11 months ago

0.2.55

11 months ago

0.2.54

11 months ago

0.2.53

11 months ago

0.2.49

11 months ago

0.2.48

11 months ago

0.2.47

11 months ago

0.2.46

11 months ago

0.2.45

11 months ago

0.2.44

11 months ago

0.2.43

11 months ago

0.2.41

11 months ago

0.2.40

11 months ago

0.2.42

11 months ago

0.2.39

11 months ago

0.2.38

11 months ago

0.2.37

11 months ago

0.2.36

11 months ago

0.2.35

11 months ago

0.2.27

11 months ago

0.2.26

11 months ago

0.2.25

11 months ago

0.2.24

11 months ago

0.2.23

11 months ago

0.2.22

11 months ago

0.2.21

11 months ago

0.2.19

11 months ago

0.2.18

11 months ago

0.2.17

11 months ago

0.2.16

11 months ago

0.2.15

11 months ago

0.2.14

11 months ago

0.2.13

11 months ago

0.2.12

11 months ago

0.2.11

11 months ago

0.2.10

11 months ago

0.1.3990

11 months ago

0.1.3899

11 months ago

0.1.3888

11 months ago

0.1.3894

11 months ago

0.1.3893

11 months ago

0.1.3892

11 months ago

0.1.3891

11 months ago

0.1.3898

11 months ago

0.1.389

11 months ago

0.1.3897

11 months ago

0.1.3896

11 months ago

0.1.3895

11 months ago

0.1.387

11 months ago

0.1.386

11 months ago

0.1.3890

11 months ago

0.1.390

11 months ago

0.2.30

11 months ago

0.2.34

11 months ago

0.2.33

11 months ago

0.2.32

11 months ago

0.2.31

11 months ago

0.2.1

11 months ago

0.2.0

11 months ago

0.2.29

11 months ago

0.2.28

11 months ago

0.2.7

11 months ago

0.2.6

11 months ago

0.2.9

11 months ago

0.2.8

11 months ago

0.2.3

11 months ago

0.2.2

11 months ago

0.2.5

11 months ago

0.2.4

11 months ago

0.1.367

11 months ago

0.1.366

11 months ago

0.1.369

11 months ago

0.1.368

11 months ago

0.1.363

11 months ago

0.1.365

11 months ago

0.1.364

11 months ago

0.1.378

11 months ago

0.1.377

11 months ago

0.1.379

11 months ago

0.1.374

11 months ago

0.1.373

11 months ago

0.1.376

11 months ago

0.1.375

11 months ago

0.1.370

11 months ago

0.1.372

11 months ago

0.1.371

11 months ago

0.1.385

11 months ago

0.1.384

11 months ago

0.1.381

11 months ago

0.1.380

11 months ago

0.1.383

11 months ago

0.1.382

11 months ago

0.1.359

11 months ago

0.1.361

11 months ago

0.1.360

11 months ago

0.1.316

12 months ago

0.1.315

12 months ago

0.1.318

12 months ago

0.1.317

12 months ago

0.1.356

12 months ago

0.1.312

12 months ago

0.1.355

12 months ago

0.1.311

12 months ago

0.1.358

12 months ago

0.1.314

12 months ago

0.1.357

12 months ago

0.1.352

12 months ago

0.1.351

12 months ago

0.1.354

12 months ago

0.1.310

12 months ago

0.1.353

12 months ago

0.1.350

12 months ago

0.1.319

12 months ago

0.1.327

12 months ago

0.1.326

12 months ago

0.1.329

12 months ago

0.1.328

12 months ago

0.1.323

12 months ago

0.1.322

12 months ago

0.1.325

12 months ago

0.1.324

12 months ago

0.1.38

12 months ago

0.1.39

12 months ago

0.1.321

12 months ago

0.1.320

12 months ago

0.1.33

12 months ago

0.1.34

12 months ago

0.1.35

12 months ago

0.1.36

12 months ago

0.1.37

12 months ago

0.1.338

12 months ago

0.1.337

12 months ago

0.1.339

12 months ago

0.1.334

12 months ago

0.1.333

12 months ago

0.1.336

12 months ago

0.1.335

12 months ago

0.1.330

12 months ago

0.1.332

12 months ago

0.1.331

12 months ago

0.1.349

12 months ago

0.1.348

12 months ago

0.1.3133

12 months ago

0.1.345

12 months ago

0.1.344

12 months ago

0.1.347

12 months ago

0.1.346

12 months ago

0.1.341

12 months ago

0.1.340

12 months ago

0.1.343

12 months ago

0.1.342

12 months ago

0.1.30

12 months ago

0.1.31

12 months ago

0.1.32

12 months ago

0.1.27

12 months ago

0.1.28

12 months ago

0.1.29

12 months ago

0.1.21

12 months ago

0.1.22

12 months ago

0.1.23

12 months ago

0.1.24

12 months ago

0.1.25

12 months ago

0.1.26

12 months ago

0.1.20

12 months ago

0.1.19

12 months ago

0.1.18

1 year ago

0.1.15

1 year ago

0.1.16

1 year ago

0.1.17

1 year ago

0.1.10

1 year ago

0.1.12

1 year ago

0.1.13

1 year ago

0.1.14

1 year ago

0.1.8

1 year ago

0.1.7

1 year ago

0.1.9

1 year ago

0.1.6

1 year ago

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago