Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
g1nt0ki committed May 1, 2024
1 parent f5e327e commit 3826878
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
3 changes: 3 additions & 0 deletions projects/helper/tokenMapping.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ const ibcMappings = {
}

const fixBalancesTokens = {
optimism: {
'0xD9cC3D70E730503E7f28c1B407389198c4B75FA2': { coingeckoId: "tlx", decimals: 18, },
},
ancient8: {
[ADDRESSES.nul]: { coingeckoId: "ethereum", decimals: 18, },
'0x4200000000000000000000000000000000000006': { coingeckoId: "ethereum", decimals: 18, },
Expand Down
12 changes: 7 additions & 5 deletions projects/tlx/index.js
Original file line number Diff line number Diff line change
@@ -1,19 +1,21 @@
const { sumTokens2 } = require("../helper/unwrapLPs");

const contracts = {
tlx: "0xD9cC3D70E730503E7f28c1B407389198c4B75FA2",
locker: "0xc068c3261522c97ff719dc97c98c63a1356fef0f",
};
}

async function staking(_, _1, _2, { api }) {
async function staking(api) {
const lockedTlxBalance = await api.call({
abi: "uint256:totalStaked",
target: contracts.locker,
});

api.addToken(contracts.tlx, lockedTlxBalance);
api.addToken(contracts.tlx, lockedTlxBalance)
return sumTokens2({ api })
}

module.exports = {
timetravel: true,
misrepresentedTokens: false,
start: 1712731500,
methodology: "Total TLX locked in the genesis locker contract.",
optimism: {
Expand Down

0 comments on commit 3826878

Please sign in to comment.