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

feat: deposit boost support #187

Merged
merged 18 commits into from
Nov 15, 2024
Merged

feat: deposit boost support #187

merged 18 commits into from
Nov 15, 2024

Conversation

gidonkatten
Copy link
Member

  • prepare/write for updateUserPointsInLoans - used by script to iterate through user loans and make sure the loan manager smart contract is updated with the latest points (should be called before updateAccountsPointsForRewards).
  • prepare/write for updateAccountsPointsForRewards - reads the points in the loan manager smart contract and records it to the rewardsV1 contract (should be called after updateUserPointsInLoans ).
  • prepare/write for claimRewards - claims the AVAX rewards earned from past epochs
  • read activeEpochs - returns the active epochs for each token/pool
  • read unclaimedRewards - returns the rewards which have been earned in past epochs and are ready to be claimed
  • read userPoints - returns the user points were they to be updated with updateUserPointsInLoans

Copy link

changeset-bot bot commented Oct 31, 2024

🦋 Changeset detected

Latest commit: 8c177ef

The changes in this PR will be included in the next version bump.

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@gidonkatten gidonkatten requested a review from palace22 October 31, 2024 10:58
Copy link

pkg-pr-new bot commented Oct 31, 2024

Open in Stackblitz

pnpm add https://pkg.pr.new/@folks-finance/xchain-sdk@187

commit: c06e160

@gidonkatten gidonkatten requested a review from stefanofa October 31, 2024 11:21
@gidonkatten gidonkatten merged commit 97a19c3 into main Nov 15, 2024
@gidonkatten gidonkatten deleted the deposit-boost branch November 15, 2024 06:13
gidonkatten pushed a commit that referenced this pull request Nov 15, 2024
This PR was opened by the [Changesets
release](https://github.com/changesets/action) GitHub action. When
you're ready to do a release, you can merge this and the packages will
be published to npm automatically. If you're not ready to do a release
yet, that's fine, whenever you add more changesets to main, this PR will
be updated.


# Releases
## @folks-finance/[email protected]

### Patch Changes

-
[#186](#186)
[`5f5b333`](5f5b333)
Thanks [@palace22](https://github.com/palace22)! - Added testnet token
CCIP-BnM

-
[#187](#187)
[`97a19c3`](97a19c3)
Thanks [@gidonkatten](https://github.com/gidonkatten)! - deposit boost
support

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants