SuiLearn
Explorer
Mainnet
Package 0xf6c0…ebf1 | SuiLearn Explorer
Move package
0xf6c05e2d9301e6e91dc6ab6c3ca918f7d55896e1f1edd64adc0e615cde27ebf1
Open in Playground
Read the source, view function signatures and call functions there.
Details
Version
4
Modules
31 (386 functions)
Published by
0xca18ba640644d2b4c28e98cf3bcee69634e2f8dcc6477cb9e1b00f59b1524377
Published in
DHV2ND…QeMm
Jun 9, 2025, 05:33:10 UTC
Versions
Each upgrade is a new package ID
v1
0xf6c0…ebf1
v2
0xbd8d…549e
v3
0x7cfe…9861
v4
0x0d73…d960
this version
Modules
31
admin
8 functions · 3 structs
Functions
add_seconds_to_reward_emission
PUBLIC
collect_protocol_fee
PUBLIC
increase_observation_cardinality_next
PUBLIC
initialize_pool_reward
PUBLIC
set_protocol_flash_loan_fee_share
PUBLIC
set_protocol_swap_fee_share
PUBLIC
toggle_trading
PUBLIC
update_pool_reward_emission
PUBLIC
Structs
CollectProtocolFeeEvent
SetProtocolFlashLoanFeeRateEvent
SetProtocolSwapFeeRateEvent
Explore admin in Playground
app
5 functions · 2 structs
Functions
get_pool_admin
PUBLIC
get_rewarder_admin
PUBLIC
init
set_pool_admin
PUBLIC
set_rewarder_admin
PUBLIC
Structs
Acl
AdminCap
Explore app in Playground
bit_math
2 functions · 0 structs
Functions
least_significant_bit
PUBLIC
most_significant_bit
PUBLIC
Structs
none
Explore bit_math in Playground
collect
2 functions · 2 structs
Functions
fee
PUBLIC
reward
PUBLIC
Structs
CollectPoolRewardEvent
FeeCollectedEvent
Explore collect in Playground
comparator
5 functions · 1 structs
Functions
compare
PUBLIC
compare_u8_vector
PUBLIC
is_equal
PUBLIC
is_greater_than
PUBLIC
is_smaller_than
PUBLIC
Structs
Result
Explore comparator in Playground
constants
12 functions · 0 structs
Functions
fee_rate_denominator
PUBLIC
max_u128
PUBLIC
max_u16
PUBLIC
max_u256
PUBLIC
max_u32
PUBLIC
max_u64
PUBLIC
max_u8
PUBLIC
pool_admin_df_key
PUBLIC
pool_trading_enabled_df_key
PUBLIC
protocol_fee_share_denominator
PUBLIC
q64
PUBLIC
rewarder_admin_df_key
PUBLIC
Structs
none
Explore constants in Playground
create_pool
2 functions · 1 structs
Functions
create_pool_internal
new
PUBLIC
Structs
PoolCreatedEvent
Explore create_pool in Playground
current_version
2 functions · 0 structs
Functions
current_major_version
PUBLIC
current_minor_version
PUBLIC
Structs
none
Explore current_version in Playground
error
33 functions · 0 structs
Functions
add_check_failed
PUBLIC
fee_rate_already_configured
PUBLIC
grow_obs_check_failed
PUBLIC
high_slippage
PUBLIC
index_out_of_bounds
PUBLIC
insufficient_funds
PUBLIC
insufficient_liquidity
PUBLIC
invalid_amounts
PUBLIC
invalid_create_pool_configs
PUBLIC
invalid_current_price
PUBLIC
invalid_fee_growth
PUBLIC
invalid_fee_rate
PUBLIC
invalid_initialization
PUBLIC
invalid_last_update_time
PUBLIC
invalid_liquidity_scalled
PUBLIC
invalid_next_price
PUBLIC
invalid_observation_timestamp
PUBLIC
invalid_pool_match
PUBLIC
invalid_price_bounds
PUBLIC
invalid_price_limit
PUBLIC
invalid_protocol_fee
PUBLIC
invalid_reserves_state
PUBLIC
invalid_tick
PUBLIC
invalid_tick_spacing
PUBLIC
invalid_timestamp
PUBLIC
not_authorised
PUBLIC
observe_checks
PUBLIC
overflow
PUBLIC
pool_not_initialised
PUBLIC
position_not_empty
PUBLIC
reward_index_not_found
PUBLIC
update_rewards_info_check_failed
PUBLIC
version_not_supported
PUBLIC
Structs
none
Explore error in Playground
full_math_u128
12 functions · 0 structs
Functions
full_mul
PUBLIC
max
PUBLIC
min
PUBLIC
mul_div_ceil
PUBLIC
mul_div_floor
PUBLIC
mul_div_round
PUBLIC
mul_shl
PUBLIC
mul_shr
PUBLIC
overflowing_add
PUBLIC
overflowing_sub
PUBLIC
wrapping_add
PUBLIC
wrapping_sub
PUBLIC
Structs
none
Explore full_math_u128 in Playground
full_math_u64
6 functions · 0 structs
Functions
full_mul
PUBLIC
mul_div_ceil
PUBLIC
mul_div_floor
PUBLIC
mul_div_round
PUBLIC
mul_shl
PUBLIC
mul_shr
PUBLIC
Structs
none
Explore full_math_u64 in Playground
global_config
5 functions · 1 structs
Functions
contains_fee_rate
PUBLIC
enable_fee_rate
PUBLIC
enable_fee_rate_internal
get_tick_spacing
PUBLIC
init
Structs
GlobalConfig
Explore global_config in Playground
i128
31 functions · 1 structs
Functions
abs
PUBLIC
abs_u128
PUBLIC
add
PUBLIC
and
PUBLIC
as_i32
PUBLIC
as_i64
PUBLIC
as_u128
PUBLIC
cmp
PUBLIC
div
PUBLIC
eq
PUBLIC
from
PUBLIC
gt
PUBLIC
gte
PUBLIC
is_neg
PUBLIC
lt
PUBLIC
lte
PUBLIC
mul
PUBLIC
neg
PUBLIC
neg_from
PUBLIC
or
PUBLIC
overflowing_add
PUBLIC
overflowing_sub
PUBLIC
shl
PUBLIC
shr
PUBLIC
sign
PUBLIC
sub
PUBLIC
u128_neg
u8_neg
wrapping_add
PUBLIC
wrapping_sub
PUBLIC
zero
PUBLIC
Structs
I128
Explore i128 in Playground
i32
28 functions · 1 structs
Functions
abs
PUBLIC
abs_u32
PUBLIC
add
PUBLIC
and
PUBLIC
as_u32
PUBLIC
cmp
PUBLIC
div
PUBLIC
eq
PUBLIC
from
PUBLIC
from_u32
PUBLIC
gt
PUBLIC
gte
PUBLIC
is_neg
PUBLIC
lt
PUBLIC
lte
PUBLIC
mod
PUBLIC
mul
PUBLIC
neg_from
PUBLIC
or
PUBLIC
shl
PUBLIC
shr
PUBLIC
sign
PUBLIC
sub
PUBLIC
u32_neg
u8_neg
wrapping_add
PUBLIC
wrapping_sub
PUBLIC
zero
PUBLIC
Structs
I32
Explore i32 in Playground
i64
28 functions · 1 structs
Functions
abs
PUBLIC
abs_u64
PUBLIC
add
PUBLIC
and
PUBLIC
as_u64
PUBLIC
cmp
PUBLIC
div
PUBLIC
eq
PUBLIC
from
PUBLIC
from_u64
PUBLIC
gt
PUBLIC
gte
PUBLIC
is_neg
PUBLIC
lt
PUBLIC
lte
PUBLIC
mod
PUBLIC
mul
PUBLIC
neg_from
PUBLIC
or
PUBLIC
shl
PUBLIC
shr
PUBLIC
sign
PUBLIC
sub
PUBLIC
u64_neg
u8_neg
wrapping_add
PUBLIC
wrapping_sub
PUBLIC
zero
PUBLIC
Structs
I64
Explore i64 in Playground
liquidity
4 functions · 4 structs
Functions
add_liquidity
PUBLIC
close_position
PUBLIC
open_position
PUBLIC
remove_liquidity
PUBLIC
Structs
AddLiquidityEvent
ClosePositionEvent
OpenPositionEvent
RemoveLiquidityEvent
Explore liquidity in Playground
liquidity_math
9 functions · 0 structs
Functions
add_delta
PUBLIC
check_is_fix_coin_a
PUBLIC
get_amount_x_for_liquidity
PUBLIC
get_amount_y_for_liquidity
PUBLIC
get_amounts_for_liquidity
PUBLIC
get_liquidity_for_amount_x
PUBLIC
get_liquidity_for_amount_y
PUBLIC
get_liquidity_for_amounts
PUBLIC
sort_sqrt_prices
Structs
none
Explore liquidity_math in Playground
math_u128
16 functions · 0 structs
Functions
add_check
PUBLIC
checked_div_round
PUBLIC
from_lo_hi
PUBLIC
full_mul
PUBLIC
hi
PUBLIC
hi_u128
PUBLIC
lo
PUBLIC
lo_u128
PUBLIC
max
PUBLIC
min
PUBLIC
overflowing_add
PUBLIC
overflowing_mul
PUBLIC
overflowing_sub
PUBLIC
wrapping_add
PUBLIC
wrapping_mul
PUBLIC
wrapping_sub
PUBLIC
Structs
none
Explore math_u128 in Playground
math_u256
7 functions · 0 structs
Functions
add_check
PUBLIC
checked_shlw
PUBLIC
div_mod
PUBLIC
div_round
PUBLIC
overflow_add
PUBLIC
shlw
PUBLIC
shrw
PUBLIC
Structs
none
Explore math_u256 in Playground
math_u64
8 functions · 0 structs
Functions
add_check
PUBLIC
carry_add
PUBLIC
overflowing_add
PUBLIC
overflowing_mul
PUBLIC
overflowing_sub
PUBLIC
wrapping_add
PUBLIC
wrapping_mul
PUBLIC
wrapping_sub
PUBLIC
Structs
none
Explore math_u64 in Playground
oracle
14 functions · 1 structs
Functions
binary_search
PUBLIC
default
get_surrounding_observations
PUBLIC
grow
PUBLIC
initialize
PUBLIC
is_initialized
PUBLIC
observe
PUBLIC
observe_single
PUBLIC
seconds_per_liquidity_cumulative
PUBLIC
tick_cumulative
PUBLIC
timestamp_s
PUBLIC
transform
PUBLIC
try_get_observation
write
PUBLIC
Structs
Observation
Explore oracle in Playground
pool
50 functions · 5 structs
Functions
add_liquidity
FRIEND
add_reward_info
FRIEND
add_to_reserves
FRIEND
assert_trading_enabled
FRIEND
borrow_observations
PUBLIC
borrow_tick_bitmap
PUBLIC
borrow_ticks
PUBLIC
collect_fee
FRIEND
collect_reward
FRIEND
create
FRIEND
default_reward_info
FRIEND
fee_growth_global_x
PUBLIC
fee_growth_global_y
PUBLIC
find_reward_info_index
flash_loan_fee_rate
PUBLIC
get_friendly_ticks
PUBLIC
get_reserves
PUBLIC
increase_observation_cardinality_next
FRIEND
initialize
PUBLIC
liquidity
PUBLIC
max_liquidity_per_tick
PUBLIC
observation_cardinality
PUBLIC
observation_cardinality_next
PUBLIC
observation_index
PUBLIC
observations_mut
FRIEND
observe
PUBLIC
pool_id
PUBLIC
protocol_fee_share
PUBLIC
protocol_fee_x
PUBLIC
protocol_fee_y
PUBLIC
protocol_flash_loan_fee_share
PUBLIC
remove_liquidity
FRIEND
reserves
PUBLIC
reward_coin_type
PUBLIC
reward_ended_at
PUBLIC
reward_growth_global
PUBLIC
reward_info_at
PUBLIC
reward_last_update_at
PUBLIC
reward_length
PUBLIC
reward_per_seconds
PUBLIC
safe_withdraw
set_fee_growth_global_x
FRIEND
set_fee_growth_global_y
FRIEND
set_liquidity
FRIEND
set_observation_cardinality
FRIEND
set_observation_index
FRIEND
set_protocol_fee_share
FRIEND
set_protocol_fee_x
FRIEND
set_protocol_fee_y
FRIEND
set_protocol_flash_loan_fee_share
FRIEND
Structs
ObservationCardinalityUpdatedEvent
Pool
PoolRewardCustodianDfKey
PoolRewardInfo
UpdatePoolRewardEmissionEvent
Explore pool in Playground
position
22 functions · 3 structs
Functions
close
FRIEND
coins_owed_reward
PUBLIC
decrease_owed_amount
FRIEND
decrease_reward_debt
FRIEND
fee_growth_inside_x_last
PUBLIC
fee_growth_inside_y_last
PUBLIC
fee_rate
PUBLIC
increase_owed_amount
FRIEND
init
is_empty
PUBLIC
liquidity
PUBLIC
open
FRIEND
owed_coin_x
PUBLIC
owed_coin_y
PUBLIC
pool_id
PUBLIC
reward_growth_inside_last
PUBLIC
reward_length
PUBLIC
tick_lower_index
PUBLIC
tick_upper_index
PUBLIC
try_borrow_mut_reward_info
update
FRIEND
update_reward_infos
Structs
POSITION
Position
PositionRewardInfo
Explore position in Playground
sqrt_price_math
6 functions · 0 structs
Functions
get_amount_x_delta
PUBLIC
get_amount_y_delta
PUBLIC
get_next_sqrt_price_from_amount_x_rouding_up
PUBLIC
get_next_sqrt_price_from_amount_y_rouding_down
PUBLIC
get_next_sqrt_price_from_input
PUBLIC
get_next_sqrt_price_from_output
PUBLIC
Structs
none
Explore sqrt_price_math in Playground
swap_math
1 functions · 0 structs
Functions
compute_swap_step
PUBLIC
Structs
none
Explore swap_math in Playground
tick
15 functions · 1 structs
Functions
clear
FRIEND
compute_reward_growths
cross
FRIEND
get_fee_and_reward_growths_inside
PUBLIC
get_fee_and_reward_growths_outside
PUBLIC
get_liquidity_gross
PUBLIC
get_liquidity_net
PUBLIC
get_seconds_out_side
PUBLIC
get_seconds_per_liquidity_out_side
PUBLIC
get_tick_cumulative_out_side
PUBLIC
is_initialized
PUBLIC
tick_spacing_to_max_liquidity_per_tick
PUBLIC
try_borrow_mut_tick
update
FRIEND
verify_tick
PUBLIC
Structs
TickInfo
Explore tick in Playground
tick_bitmap
6 functions · 0 structs
Functions
cast_to_u8
PUBLIC
flip_tick
FRIEND
next_initialized_tick_within_one_word
PUBLIC
position
try_borrow_mut_tick_word
try_get_tick_word
Structs
none
Explore tick_bitmap in Playground
tick_math
11 functions · 0 structs
Functions
as_u8
get_sqrt_price_at_negative_tick
get_sqrt_price_at_positive_tick
get_sqrt_price_at_tick
PUBLIC
get_tick_at_sqrt_price
PUBLIC
is_valid_index
PUBLIC
max_sqrt_price
PUBLIC
max_tick
PUBLIC
min_sqrt_price
PUBLIC
min_tick
PUBLIC
tick_bound
PUBLIC
Structs
none
Explore tick_math in Playground
trade
25 functions · 8 structs
Functions
closer
compute_swap_result
PUBLIC
compute_swap_result_max
PUBLIC
flash_loan
PUBLIC
flash_receipt_debts
PUBLIC
flash_swap
PUBLIC
get_optimal_swap_amount_for_single_sided_liquidity
PUBLIC
get_state_amount_calculated
PUBLIC
get_state_amount_specified
PUBLIC
get_state_fee_amount
PUBLIC
get_state_fee_growth_global
PUBLIC
get_state_liquidity
PUBLIC
get_state_protocol_fee
PUBLIC
get_state_sqrt_price
PUBLIC
get_state_tick_index
PUBLIC
get_step_amount_in
PUBLIC
get_step_amount_out
PUBLIC
get_step_fee_amount
PUBLIC
get_step_initialized
PUBLIC
get_step_sqrt_price_next
PUBLIC
get_step_sqrt_price_start
PUBLIC
get_step_tick_index_next
PUBLIC
repay_flash_loan
PUBLIC
repay_flash_swap
PUBLIC
swap_receipt_debts
PUBLIC
Structs
FlashLoanEvent
FlashLoanReceipt
FlashSwapReceipt
RepayFlashLoanEvent
RepayFlashSwapEvent
SwapEvent
SwapState
SwapStepComputations
Explore trade in Playground
utils
2 functions · 0 structs
Functions
refund
PUBLIC
to_seconds
PUBLIC
Structs
none
Explore utils in Playground
version
9 functions · 2 structs
Functions
assert_supported_version
PUBLIC
init
is_supported_major_version
PUBLIC
is_supported_minor_version
PUBLIC
set_version
PUBLIC
upgrade_major
PUBLIC
upgrade_minor
PUBLIC
value_major
PUBLIC
value_minor
PUBLIC
Structs
Version
VersionCap
Explore version in Playground