Skip to content

Commit

Permalink
addtl ux idea
Browse files Browse the repository at this point in the history
  • Loading branch information
thesoftwarejedi committed Sep 30, 2021
1 parent 78c1d91 commit 2ba88cb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,8 @@ class User {
// this function is accurate forever (even after pool ends), unless the pool is changed through
// funding, or anyone staking/unstaking.
// Querying the chain is only done on initial call (this method) to build the function.
// Computations are done against current date/time every time the returned function is called.
// Computations are done against current date/time every time the returned function is called; thus you
// could hook this up to a timer for a fancy UX.
static async getPendingRewardsFunction(rewardsPoolAnchorProgram, rewardsPoolPubkey) {
const U64_MAX = new anchor.BN("18446744073709551615", 10);
let poolObject = await rewardsPoolAnchorProgram.account.pool.fetch(rewardsPoolPubkey);
Expand Down

0 comments on commit 2ba88cb

Please sign in to comment.