Skip to content

Commit

Permalink
enable gems generation
Browse files Browse the repository at this point in the history
  • Loading branch information
wighawag committed Apr 29, 2024
1 parent 7b77f6e commit 9eae7c6
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion contracts/deploy/011_deploy_gems_generator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export default execute(
args: [
zeroAddress, // Gems.address,
{
rewardRateMillionth: 0n, // TODO 100n, // 100 for every million of second. or 8.64 / day
rewardRateMillionth: 100n, // 100 for every million of second. or 8.64 / day
// in play test we add reward midway
fixedRewardRateThousandsMillionth: 10n, // 10 for every thousand million of seconds, or 0.000864 per day per stake or 315.36 / year / 1000 stake
},
Expand Down
12 changes: 6 additions & 6 deletions contracts/deployments/alpha1/GemsGenerator_Implementation.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"address": "0xd37c9e1978cfba13c474f07fe5a22f9608e2a2ed",
"address": "0x89c4277da7feafaaae31b3d1328d236470158370",
"abi": [
{
"inputs": [
Expand Down Expand Up @@ -1065,15 +1065,15 @@
},
"version": 1
},
"argsData": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000",
"argsData": "0x00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000064000000000000000000000000000000000000000000000000000000000000000a00000000000000000000000000000000000000000000000000000000000000800000000000000000000000000000000000000000000000000000000000000000",
"transaction": {
"hash": "0xd300b2ed4887daee0bc885e1cd3f7dd23dc4c849d9ae6742247c8f527c5b8f99",
"hash": "0x3525dcca32d453f7fd5381fc4842f8e09863724dd65127ecf7ebe2913e5af57f",
"origin": "0xbe19b59e8c588d68f475a407c7ba5fe813aeb792"
},
"receipt": {
"confirmations": 0,
"blockHash": "0xf6e846d5afb57ac8a4f36e9db24f45a0c657048a8e49b5e013fba8bf7b6e82e0",
"blockNumber": "0xb85c85",
"transactionIndex": "0xc"
"blockHash": "0xb585a42abbfa89c0e6b65c4ab0375973dc77a54da959608bd262d8b6f3108653",
"blockNumber": "0xd282a0",
"transactionIndex": "0xb"
}
}
2 changes: 1 addition & 1 deletion contracts/scripts/distributeMoreTokens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ async function main() {

const TestTokens = env.get<typeof context.artifacts.TestTokens.abi>('TestTokens');
const decimals = await env.read(TestTokens, {functionName: 'decimals'});
const numTokensTMP = parseUnits('10', decimals);
const numTokensTMP = parseUnits('20', decimals);
const numTokensPerAccount = numTokensTMP + (numTokensTMP * 6n) / parseUnits('1', decimals);
const total = BigInt(addresses.length) * numTokensPerAccount;
const prompt = await prompts({
Expand Down
4 changes: 2 additions & 2 deletions web/src/lib/ui/leaderboard/ActualLeaderboardView.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
const PRECISION = BigInt(1e24);
const DECIMALS_18_MILLIONTH = 1000000000000n;
const REWARD_RATE_millionth = 0n; // 100n
const REWARD_RATE_millionth = 100n;
function _computeExtraTotalRewardPerPointSinceLastTime(
timestamp: bigint,
Expand Down Expand Up @@ -124,7 +124,7 @@
}),
table.column({
header: 'gems',
accessor: (playerInfo) => `${playerInfo.pointsInfo.gems} (coming in phase 2)`,
accessor: (playerInfo) => `${playerInfo.pointsInfo.gems}`,
}),
]);
Expand Down

0 comments on commit 9eae7c6

Please sign in to comment.