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

update decimal and fee growth type to u256 #285

Merged
merged 31 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
f817cf3
update decimal and fee growth type to u256
zielvna Jul 23, 2024
7e5ec04
update FeeGrowth to u256
none00y Aug 1, 2024
935c42c
fix CI
none00y Aug 2, 2024
4380c63
Merge branch 'master' into fee-growth-to-u256
none00y Aug 5, 2024
40a08c6
fix e2e tests
none00y Aug 5, 2024
fceead3
update SqrtPrice precision and Percentage type
none00y Aug 6, 2024
c078041
fix math
none00y Aug 6, 2024
ac0bef7
update sdk to use U256 FeeGrowth
none00y Aug 8, 2024
f1481d3
Merge branch 'master' into fee-growth-to-u256
none00y Aug 8, 2024
da98148
fix clippy errors
none00y Aug 8, 2024
38a46f6
update max ticks crossed for swap simulation
none00y Aug 9, 2024
aa018e7
fix types in log
none00y Aug 9, 2024
afcce42
remove obsolete comment
none00y Aug 9, 2024
ee550eb
fix clamm
none00y Aug 9, 2024
0e8ad61
remove decimals
none00y Aug 9, 2024
57ea03d
rename u448 variables to match type
none00y Aug 9, 2024
819ecba
add full range liquidity edge case calculations
none00y Aug 13, 2024
b30978f
Merge branch 'master' into fee-growth-to-u256
none00y Sep 16, 2024
2a630d1
update max swap steps
none00y Sep 17, 2024
8ade512
add copies to serialization
none00y Sep 17, 2024
b83e33b
fix consts
none00y Sep 17, 2024
cb3c56b
fix max tick cross
none00y Sep 17, 2024
88707bf
Merge branch 'master' into fee-growth-to-u256
none00y Sep 17, 2024
c2c54c4
bump sdk version and deploy contract
none00y Sep 17, 2024
ea89965
fix consts
none00y Sep 17, 2024
c0a35d0
fix networks in tests
none00y Sep 17, 2024
9a7d1a2
redeploy with new decimals
none00y Sep 17, 2024
71c45c4
bumo version
none00y Sep 17, 2024
9fdc2a3
update query limits
none00y Sep 17, 2024
333a18f
deploy testnet
none00y Sep 18, 2024
b280ea6
deploy mainnet
none00y Sep 18, 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
4 changes: 4 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ ink = { version = "5.0.0", default-features = false }
token = { path = "src/token", default-features = false, features = [
"ink-as-dependency",
] }
scale-info = { version = "2.11.3", default-features = false }

[dev-dependencies]
ink_e2e = "5.0.0"
Expand All @@ -25,7 +26,7 @@ path = "src/lib.rs"

[features]
default = ["std"]
std = ["ink/std", "token/std"]
std = ["ink/std", "token/std", "decimal/std"]
ink-as-dependency = []
e2e-tests = []

Expand Down
1 change: 0 additions & 1 deletion scripts/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@ const main = async () => {
10 ** 24
try {
const poolSqrtPrice = priceToSqrtPrice(BigInt(Math.round(price)))
console.log(poolKey)
await invariant.createPool(account, poolKey, poolSqrtPrice)
} catch (e) {
console.log('Create pool error', poolKey, e)
Expand Down
Loading
Loading