Skip to content

Commit

Permalink
Fix calculate utility score to set up bump seed
Browse files Browse the repository at this point in the history
  • Loading branch information
ChewingGlass committed Jan 10, 2025
1 parent 34ab3ae commit 1fde0d1
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,10 @@ pub fn handler(
ctx.accounts.sub_dao_epoch_info.sub_dao = ctx.accounts.sub_dao.key();
ctx.accounts.sub_dao_epoch_info.bump_seed = *ctx.bumps.get("sub_dao_epoch_info").unwrap();
ctx.accounts.sub_dao_epoch_info.initialized = true;
ctx.accounts.prev_sub_dao_epoch_info.sub_dao = ctx.accounts.sub_dao.key();
ctx.accounts.prev_sub_dao_epoch_info.bump_seed =
*ctx.bumps.get("prev_sub_dao_epoch_info").unwrap();
ctx.accounts.prev_sub_dao_epoch_info.epoch = args.epoch - 1;
ctx.accounts.dao_epoch_info.bump_seed = *ctx.bumps.get("dao_epoch_info").unwrap();

// Calculate utility score
Expand Down

0 comments on commit 1fde0d1

Please sign in to comment.