diff --git a/frontend/claim_sdk/treasury.ts b/frontend/claim_sdk/treasury.ts index 46c0509e..51da05c7 100644 --- a/frontend/claim_sdk/treasury.ts +++ b/frontend/claim_sdk/treasury.ts @@ -21,12 +21,7 @@ export const funders = [ ] export function getClaimPayers(claimInfo: ClaimInfo): [PublicKey, PublicKey] { - const buffer = claimInfo.toBuffer() - const toHex = buffer.toString('hex') - const toNumber = parseInt(toHex, 16) - const funderIndex = toNumber % funders.length - - const treasuryIndex = toNumber % treasuries.length - - return [funders[funderIndex], treasuries[treasuryIndex]] + // just choose ramdomly + const index = Math.floor(Math.random() * treasuries.length) + return [funders[index], treasuries[index]] }