feat: update binary prediction token authority#110
Conversation
|
Warning Review limit reached
Next review available in: 6 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (1)
WalkthroughThis PR refactors the binary-prediction Anchor program to derive pool authority from the pool PDA (seeded with the mint) rather than a separate pool_authority signer. Transfer helpers are updated (pool_signed_transfer gains a pool_mint parameter; a new signer_transfer helper is added), instruction logic in place_bet and settle is adjusted for conditional delegation and updated payout paths, account constraints are updated accordingly, and the integration test suite is refactored to use a local transaction-sending helper. ChangesPool PDA Authority Migration
Estimated code review effort: 4 (Complex) | ~60 minutes Possibly related PRs
Suggested reviewers: 🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
c2d63d7 to
9108ad2
Compare
jonasXchen
left a comment
There was a problem hiding this comment.
LGTM!
More flexible if pool has the authority!
Summary
place_betso wallet bets transfer stake with the user signer, while session bets require the session signer to be approved as the user token delegate.Testing
anchor buildyarn lint:fix && yarn lintyarn test:localSummary by CodeRabbit
New Features
Bug Fixes