Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(p2e): multiplier #1236

Merged
merged 2 commits into from
Jul 3, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions packages/hooks/riotGame/useSquadStakingConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ const getEthereumSquadStakingConfig = async (networkId: string | undefined) => {
const owner = await ethereumClient.owner();
const squadCountLimit = await ethereumClient.maxSquadCount();

// TODO: Hardcode several values because it will not be changed and it take too much requests to get them
// NOTE: the current contract does not allow to retrieve the array of multiplier but individual value
// so we hardcode several values because it will not be changed and it take too much requests to get them
const squadConfig: SquadConfig = {
owner,
cooldownPeriod: cooldownPeriod.toNumber(),
squadCountLimit: squadCountLimit.toNumber(),
// Hardcode
bonusMultiplier: [100, 101, 102, 103, 104, 105],
bonusMultiplier: [100, 105, 125, 131, 139, 161],
maxSquadSize: 6,
minSquadSize: 1,
};
Expand Down
Loading