Skip to content

Commit

Permalink
[frenemies] last minute changes MystenLabs#3 (MystenLabs#7757)
Browse files Browse the repository at this point in the history
  • Loading branch information
damirka authored Jan 27, 2023
1 parent e5ebddb commit 5572955
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions dapps/frenemies/src/components/your-score/Refresh.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ export function Refresh({ scorecard, leaderboardID }: Props) {
return null;
}

let gasPrice = await provider.getReferenceGasPrice();
// this is really wild; for some reason resulting gas price in the epoch is 1
// while the actual gasPrice is in 100+ range
if (gasPrice < 100) { gasPrice = 100; }

const gasPrice = await provider.getReferenceGasPrice();
const gasRequred = GAS_BUDGET * BigInt(gasPrice);
const { gas } = getGas(coins, gasRequred);

Expand Down

0 comments on commit 5572955

Please sign in to comment.