[PE-7237] Claim vested coins flow - #13307
Conversation
|
dylanjeffers
left a comment
There was a problem hiding this comment.
generally looks quite solid!
| const rewardsPoolAccountInfo = | ||
| await connection.getAccountInfo(rewardsPoolAddress) | ||
| if (!rewardsPoolAccountInfo) { | ||
| throw new Error( |
There was a problem hiding this comment.
do we want to throw for the entire script if this is the case? probably huh?
There was a problem hiding this comment.
i think so - in this branch user has specified that they want to disburse to rewards pool. if that's not possible then i think we should fail.
| mintPublicKey, // mint | ||
| rewardsPoolAddress, // destination (rewards pool) | ||
| ownerWallet, // owner of source account | ||
| BigInt(rewardsPoolAmount.toString()), // amount as BigInt to handle large values |
There was a problem hiding this comment.
what is rewardsPoolAmount rn? bn?
There was a problem hiding this comment.
yeah and unfortunately meteora uses BN so we're locked in
|
No dependency changes detected. Learn more about Socket for GitHub. 👍 No dependency changes detected in pull request |
[98da331] Claim vested coins flow QA (#13335) Reed [0216cc9] [PE-7255] Add user balance history graph (#13337) Dylan Jeffers [fb07b7a] [PE-7256|PE-7257] Rework artist coins list & create add cash page (#13341) JD Francis [20bbd05] Drop donation (#13346) Dylan Jeffers [c6de169] Fix exclusive tracks section playback (#13348) Dylan Jeffers [eb8b147] Add error state if jup quote fails (#13344) Reed [0903d80] Select artist-coin flair fixes (#13345) Dylan Jeffers [e01065d] [PE-7266] Add coin exclusive tracks to coin page (#13332) Dylan Jeffers [0aef321] Update FixedDecimal to support scientific notation (#13339) Marcus Pasell [096aa76] [PE-7232] Fix smart tab behavior for external wallets + fix unauth buy button coins table (#13336) JD Francis [1e2e0a6] [PE-7252] Always show user's launched coin (#13334) Reed [da27d25] Version Packages (#13331) github-actions[bot] [c13483e] Drop rights and covers feature flag (#13324) Dylan Jeffers [28791a9] Add artist coin flair selector feature (#13317) Farid Salau [2625849] [PE-7253] Fix web explore page title (#13326) Reed [c275d11] Fix web lint (#13325) Reed [46ad234] [PE-7237] Claim vested coins flow (#13307) Reed [57b5340] Drop ai-attribution (#13321) Dylan Jeffers [99e2e8c] Drop track replace flag (#13323) Dylan Jeffers [705381c] [PE-7249] Invalidate artist-coin on buy/sell/swap (#13322) Dylan Jeffers [87dbc94] [PE-7235] Fix pay with anything token picker (#13316) Dylan Jeffers [bfadb5b] Revert "Artist coins page size 1000 (#13313)" (#13320) Reed [452326b] Revert "[PE-7204] Associate wallets on solana /relay calls" (#13314) JD Francis
Description
Migrating the
claim-vestedscript to a relay endpoint + UIHow Has This Been Tested?
Successful tx with hardcoded amount = 2: https://explorer.solana.com/tx/4rWcfpd4tEmjfQBBSkXhPd6FA381VhqpDMjFU5GFs3NyefP2SMXYHKTcPuE7nRxxBmPxLyr4VSQe9vEEvgm99QnS
Successful tx with hardcoded amount = 1 $BELIEVE:
https://solscan.io/tx/67EKhRK9kuPd2yeBQ31yer6q6e4W4qb9e1x3gBrRZe6xANjmTbpv4gSHTPyfyhNjg9URghUFyzHDidVsxTVA8vLV#tokenBalanceChange
haven't tested with full amount yet