Skip to content

Commit

Permalink
Adapter for TLX protocol (#10058)
Browse files Browse the repository at this point in the history
* Adapter for TLX protocol added

* Adapter for TLX protocol updated
  • Loading branch information
pauljpritz-temp authored May 1, 2024
1 parent f8dd238 commit f5e327e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions projects/tlx/index.js
Original file line number Diff line number Diff line change
@@ -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,
},
};

0 comments on commit f5e327e

Please sign in to comment.