Skip to content

Commit

Permalink
Merge pull request #194 from Emurgo/feat/YOEXT-1189/update-bias
Browse files Browse the repository at this point in the history
removing bias intervention
  • Loading branch information
vsubhuman authored Sep 5, 2024
2 parents 4b1531e + 49847d3 commit 8c6eaff
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/API/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const backendUrl: string = BACKEND_URL;

const BIAS_POOL_IDS = [
'dbda39c8d064ff9801e376f8350efafe67c07e9e9244dd613aee5125', // EMURA
'359d3f8e355c873b0b5cae1e18eb12e44dcfc2ad212706d93ac314ab', // EMURB
// '359d3f8e355c873b0b5cae1e18eb12e44dcfc2ad212706d93ac314ab', // EMURB
'8efb053977341471256685b1069d67f4aca7166bc3f94e27ebad217f', // EMUR7
'0ef7aa564933ce75b695cdad66be4a39b43a22726de7c58908e0e033', // EMUR8
'2a8294ad7538b15353b9ffd81e26dafe846ffc3f6b9e331d4c1dc030', // YORO1
Expand Down Expand Up @@ -213,12 +213,7 @@ export async function listBiasedPools(
if (biasedPools.length === 0) return { pools: unbiasedPools, saturationLimit };
const biasedPoolsOrderByExternalSeed = sortBiasedPools(biasedPools, externalSeed);

// const topPool = biasedPoolsOrderByExternalSeed[0];

// TODO: manual intervention to be removed when new pools are deemed viable
const topPool = biasedPoolsOrderByExternalSeed
.find(p => p.id === '0ef7aa564933ce75b695cdad66be4a39b43a22726de7c58908e0e033') // EMUR8
?? biasedPoolsOrderByExternalSeed[0];
const topPool = biasedPoolsOrderByExternalSeed[0];

const biasedLowerPools = biasedPools.filter((p) => p !== topPool);
const biasedLowerPoolsOrderedByInternalSeed = sortBiasedPools(biasedLowerPools, internalSeed);
Expand Down

0 comments on commit 8c6eaff

Please sign in to comment.