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

[floki] add floki strategy #1329

Merged
merged 1 commit into from
Oct 30, 2023
Merged

[floki] add floki strategy #1329

merged 1 commit into from
Oct 30, 2023

Conversation

AlissonRS
Copy link
Contributor

Added Floki strategy.

It combines users' FLOKI balance, as well as their staked balance on our Staking Pool, with stake multipliers taken into account (which depends on how long they staked for).

One single user wallet can have multiple stakes, so we first call getUserStakes(address) in the pool contract. Each user stake can have different amounts and durations, which results in different multipliers.

Next, we use the applyMultiplier function from the multiplier contract for each stake to find the actual balance to be considered.

Finally, we add them to the FLOKI balance.

@ChaituVR ChaituVR merged commit 6fefb8d into snapshot-labs:master Oct 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants