Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mint Range Utils #17

Open
wants to merge 148 commits into
base: pool-contract
Choose a base branch
from
Open
Changes from 1 commit
Commits
Show all changes
148 commits
Select commit Hold shift + click to select a range
247c683
reorganize libs
alphak3y May 15, 2024
41cd096
reorganize libs
alphak3y May 15, 2024
9ffe124
reorganize libs
alphak3y May 15, 2024
969aa88
reorganize libs
alphak3y May 15, 2024
544ae2c
mint range call
alphak3y May 16, 2024
b904445
mint range call
alphak3y May 16, 2024
56281db
mint range call
alphak3y May 16, 2024
3751aac
mint range call
alphak3y May 16, 2024
5ed649a
mint range call
alphak3y May 16, 2024
f86e6ab
mint range call
alphak3y May 16, 2024
7faf8fc
mint range call
alphak3y May 16, 2024
34990ed
mint range call
alphak3y May 16, 2024
4c5f30c
mint range call
alphak3y May 16, 2024
40b14c2
mint range call
alphak3y May 17, 2024
218f13f
mint range call
alphak3y May 17, 2024
4cf8e99
mint range call
alphak3y May 17, 2024
52d4862
mint range call
alphak3y May 17, 2024
1b7358f
mint range call
alphak3y May 17, 2024
39a33fd
mint range call
alphak3y May 17, 2024
6507cef
mint range call
alphak3y May 17, 2024
b01eeb1
mint range call
alphak3y May 17, 2024
c524491
mint range call
alphak3y May 17, 2024
779ff6a
range positions
alphak3y May 17, 2024
0eb5958
range positions
alphak3y May 17, 2024
62acb85
range positions
alphak3y May 17, 2024
681e89d
range positions
alphak3y May 17, 2024
ee86e04
range positions
alphak3y May 17, 2024
e10313f
range positions
alphak3y May 17, 2024
cc02c32
global state
alphak3y May 17, 2024
874682e
global state
alphak3y May 17, 2024
acc9289
global state
alphak3y May 17, 2024
0f5fee1
global state
alphak3y May 17, 2024
3359c6c
global state
alphak3y May 17, 2024
d4b70bf
global state
alphak3y May 17, 2024
aaf3d6d
global state
alphak3y May 17, 2024
0f29549
global state
alphak3y May 17, 2024
4611ec4
global state
alphak3y May 17, 2024
ca011a7
global state
alphak3y May 17, 2024
9b38a3e
global state
alphak3y May 17, 2024
b5ca871
global state
alphak3y May 17, 2024
f21e642
global state
alphak3y May 17, 2024
d9357f7
global state
alphak3y May 17, 2024
bd9c6dc
global state
alphak3y May 17, 2024
34a7cf4
global state
alphak3y May 17, 2024
e167f52
mint range cache
alphak3y May 17, 2024
c6faae7
mint range cache
alphak3y May 17, 2024
852f439
mint range cache
alphak3y May 17, 2024
df539f1
mint range cache
alphak3y May 17, 2024
a1d8283
mint range cache
alphak3y May 17, 2024
e082b6a
mint range cache
alphak3y May 17, 2024
1a4d66a
mint range cache
alphak3y May 17, 2024
6949d8d
mint range cache
alphak3y May 17, 2024
d9878fb
mint range cache
alphak3y May 17, 2024
cf2ca20
mint range cache
alphak3y May 17, 2024
f4ff56f
mint range cache
alphak3y May 17, 2024
8d7e66a
mint range cache
alphak3y May 17, 2024
8f5ef26
mint range cache
alphak3y May 17, 2024
25fc13a
mint range cache
alphak3y May 17, 2024
185b64c
mint range cache
alphak3y May 17, 2024
a8e31d5
mint range cache
alphak3y May 17, 2024
0798157
mint range cache
alphak3y May 17, 2024
e0692b3
mint range cache
alphak3y May 17, 2024
b7df278
mint range cache
alphak3y May 17, 2024
85ecfff
mint range call
alphak3y May 20, 2024
2aa9ffb
mint range call
alphak3y May 20, 2024
8d2dd2c
mint range call
alphak3y May 20, 2024
e8e31ed
mint range call
alphak3y May 20, 2024
466e873
mint range call
alphak3y May 20, 2024
8587853
zero i64
alphak3y May 20, 2024
f3dd009
zero i64
alphak3y May 20, 2024
20bdb64
callback abis
alphak3y May 20, 2024
8b55d1d
callback abis
alphak3y May 20, 2024
9791600
callback abis
alphak3y May 20, 2024
2816f65
callback abis
alphak3y May 20, 2024
3841381
callback abis
alphak3y May 20, 2024
aa0e304
callback abis
alphak3y May 20, 2024
e9adbf2
callback abis
alphak3y May 20, 2024
c513ef1
callback abis
alphak3y May 20, 2024
4de631d
callback abis
alphak3y May 20, 2024
436dd35
callback abis
alphak3y May 20, 2024
8286ff6
callback abis
alphak3y May 20, 2024
f9c544e
callback abis
alphak3y May 20, 2024
54e542c
callback abis
alphak3y May 20, 2024
704b8dc
callback abis
alphak3y May 20, 2024
62f3ef7
callback abis
alphak3y May 20, 2024
3f57e71
callback abis
alphak3y May 20, 2024
07f6704
callback abis
alphak3y May 20, 2024
5c4d047
callback abis
alphak3y May 20, 2024
b28aa78
mint range event
alphak3y May 20, 2024
80945a9
mint range event
alphak3y May 20, 2024
9c0806d
mint range event
alphak3y May 20, 2024
13ba091
mint range event
alphak3y May 20, 2024
c21e4fa
mint range event
alphak3y May 20, 2024
42cf719
mint range event
alphak3y May 20, 2024
873a8d2
mint range event
alphak3y May 20, 2024
21a6322
i64 from uint
alphak3y May 20, 2024
b1e4d9f
i64 from uint
alphak3y May 20, 2024
fefa74a
i64 from uint
alphak3y May 20, 2024
cca9d61
i64 from uint
alphak3y May 20, 2024
c348518
i64 from uint
alphak3y May 20, 2024
4335669
i64 from uint
alphak3y May 20, 2024
7649fcc
i64 from uint
alphak3y May 20, 2024
c58acf5
mint range call
alphak3y May 20, 2024
d756314
mint range call
alphak3y May 20, 2024
1fe111f
mint range call
alphak3y May 20, 2024
0933578
mint range call
alphak3y May 20, 2024
7868e35
identity bits
alphak3y May 20, 2024
d6cc14a
identity bits
alphak3y May 20, 2024
2cdff07
identity bits
alphak3y May 20, 2024
96db2fe
identity bits
alphak3y May 20, 2024
af55a86
identity bits
alphak3y May 20, 2024
25125d6
identity bits
alphak3y May 20, 2024
7f84d12
identity bits
alphak3y May 20, 2024
8d9f7cd
identity bits
alphak3y May 20, 2024
bae18ba
identity bits
alphak3y May 20, 2024
952d586
identity bits
alphak3y May 20, 2024
13bfa43
identity bits
alphak3y May 20, 2024
96c01d0
identity bits
alphak3y May 20, 2024
c9ea309
identity bits
alphak3y May 20, 2024
92d08d0
identity bits
alphak3y May 20, 2024
11192dd
identity bits
alphak3y May 20, 2024
1be1f41
check ticks
alphak3y May 22, 2024
404907d
check ticks
alphak3y May 22, 2024
5bcfb94
check ticks
alphak3y May 22, 2024
bace21c
remove ordeq
alphak3y May 24, 2024
abb1feb
remove ordeq
alphak3y May 24, 2024
f9ab7c9
remove ordeq
alphak3y May 24, 2024
0dc4b71
remove ordeq
alphak3y May 24, 2024
5d8a500
i24 zero
alphak3y May 24, 2024
c0ac1a3
i24 zero
alphak3y May 24, 2024
9da1407
i24 zero
alphak3y May 24, 2024
93df212
i24 zero
alphak3y May 24, 2024
ee2a555
i24 zero
alphak3y May 24, 2024
93e4eb2
i24 zero
alphak3y May 24, 2024
024f7b8
i24 zero
alphak3y May 24, 2024
4d96c86
i24 zero
alphak3y May 24, 2024
2756be7
i24 zero
alphak3y May 24, 2024
9cde1d5
i24 zero
alphak3y May 24, 2024
417dbe9
i24 zero
alphak3y May 24, 2024
c427aca
i24 zero
alphak3y May 24, 2024
45fa7c6
i24 zero
alphak3y May 24, 2024
f1c6d1d
i24 zero
alphak3y May 24, 2024
311b147
i24 zero
alphak3y May 24, 2024
47f6eb0
i24 zero
alphak3y May 24, 2024
fa713d4
i24 zero
alphak3y May 24, 2024
12a1bb9
i24 zero
alphak3y May 24, 2024
5082793
i24 zero
alphak3y May 24, 2024
8156012
i24 zero
alphak3y May 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
i24 zero
  • Loading branch information
alphak3y committed May 24, 2024
commit c427aca7193b6261410d7eb0f4c1f4312292c01c
4 changes: 2 additions & 2 deletions amm_libs/src/math/constant_product.sw
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ impl ConstantProduct {
require(lower.ge(Self::min_tick(tick_spacing)), "INPUT ERROR: lower tick below minimum.");
require(upper.lt(Self::max_tick(tick_spacing)), "INPUT ERROR: upper tick above maximum.");
let tick_spacing_i24: I24 = I24::from_uint(tick_spacing);
require(lower % tick_spacing_i24 == 0, "INPUT ERROR: lower tick outside tick spacing.");
require(upper % tick_spacing_i24 == 0, "INPUT ERROR: upper tick outside tick spacing.");
require(lower % tick_spacing_i24 == I24::zero(), "INPUT ERROR: lower tick outside tick spacing.");
require(upper % tick_spacing_i24 == I24::zero(), "INPUT ERROR: upper tick outside tick spacing.");
require(lower >= upper, "INPUT ERROR: lower tick must be less than upper tick.");
}

Expand Down