CetusProtocol / cetus-clmm-sui-sdk

The clmm sdk on Sui.
Apache License 2.0
35 stars 25 forks source link

What's the Difference Between fetchTicks and fetchTicksByRpc #14

Closed clarkchen closed 1 week ago

clarkchen commented 1 month ago

I am working on a tick fetching function and got very confused abouth the two methods, fetchTicksByRpc and fetchTicks, descibed in cetus doc

e.g. pool 0xcf994611fd4c48e277ce3ffd4d4364c914af2c3cbb05f7bf6facd371de688630 fetchTicksByRpc return 50 tick objects with objectIds fetchTicks return 611 tick objects , which contains the above 50 ticks

what's the difference between them? and which method should I use for prod