use sui::table;
use sage_reward::reward;

Explore this module further in the Mover Registry: @sage/reward

Structs

RewardWeightsRegistry

Registry of all RewardWeights over time.

public struct RewardWeightsRegistry has key

Functions

borrow

Get an immutable reference to the RewardWeights during a specific epoch.

public fun borrow(reward_weights_registry: &RewardWeightsRegistry, timestamp: u64): &RewardWeights

borrow_current

Get an immutable reference to the RewardWeights during the current epoch.

public fun borrow_current(reward_weights_registry: &RewardWeightsRegistry): &RewardWeights

get_current

Get the current reward epoch.

public fun get_current(reward_weights_registry: &RewardWeightsRegistry): u64

get_length

Get the number of reward epochs that have occurred.

public fun get_length(reward_weights_registry: &RewardWeightsRegistry): u64