From f5e327e07641f53bd3f930065d7dcec8d6dc5cae Mon Sep 17 00:00:00 2001 From: pauljpritz-temp <107891923+pauljpritz-temp@users.noreply.github.com> Date: Wed, 1 May 2024 12:11:32 +0100 Subject: [PATCH] Adapter for TLX protocol (#10058) * Adapter for TLX protocol added * Adapter for TLX protocol updated --- projects/tlx/index.js | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 projects/tlx/index.js diff --git a/projects/tlx/index.js b/projects/tlx/index.js new file mode 100644 index 000000000000..1eaf0292005a --- /dev/null +++ b/projects/tlx/index.js @@ -0,0 +1,23 @@ +const contracts = { + tlx: "0xD9cC3D70E730503E7f28c1B407389198c4B75FA2", + locker: "0xc068c3261522c97ff719dc97c98c63a1356fef0f", +}; + +async function staking(_, _1, _2, { api }) { + const lockedTlxBalance = await api.call({ + abi: "uint256:totalStaked", + target: contracts.locker, + }); + + api.addToken(contracts.tlx, lockedTlxBalance); +} +module.exports = { + timetravel: true, + misrepresentedTokens: false, + start: 1712731500, + methodology: "Total TLX locked in the genesis locker contract.", + optimism: { + tvl: () => ({}), + staking: staking, + }, +};