Skip to content

Commit

Permalink
mantle
Browse files Browse the repository at this point in the history
  • Loading branch information
waynebruce0x committed Apr 23, 2024
1 parent 7f8fe9b commit e186075
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 deletions.
1 change: 1 addition & 0 deletions adapters/balance/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ export async function balance(
}).then((r: any) => {
if (!r.output)
throw new Error(`balance call failed for ${adapter}`);
if (!chainData[block].result) chainData[block].result = 0;
chainData[block].result += Number(r.output);
});
})
Expand Down
30 changes: 15 additions & 15 deletions protocols/mantle.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
import { Protocol } from "../types/adapters";
import { manualCliff } from "../adapters/manual";
import { balance, latest } from "../adapters/balance";
import { GAS_TOKEN } from "../utils/constants";

const start = 1688317200;
const deployed = 1696636800;
const chain = "mantle";
const token = "0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000";

const mantle: Protocol = {
Circulating: manualCliff(start, 3172988154),
Expand All @@ -26,23 +26,23 @@ const mantle: Protocol = {
chain,
deployed,
),
// () =>
// balance(
// [
// "0x94FEC56BBEcEaCC71c9e61623ACE9F8e1B1cf473",
// "0xcD9Dab9Fa5B55EE4569EdC402d3206123B1285F4",
// "0x87C62C3F9BDFc09200bCF1cbb36F233A65CeF3e6",
// "0x992b65556d330219e7e75C43273535847fEee262",
// ],
// GAS_TOKEN,
// chain,
// chain,
// start,
// ),
() =>
balance(
[
"0x94FEC56BBEcEaCC71c9e61623ACE9F8e1B1cf473",
"0xcD9Dab9Fa5B55EE4569EdC402d3206123B1285F4",
"0x87C62C3F9BDFc09200bCF1cbb36F233A65CeF3e6",
"0x992b65556d330219e7e75C43273535847fEee262",
],
token,
chain,
chain,
start,
),
],
meta: {
sources: ["https://docs.mantle.xyz/governance/parameters/tokenomics"],
token: `${chain}:0xDeadDeAddeAddEAddeadDEaDDEAdDeaDDeAD0000`,
token: `${chain}:${token}`,
protocolIds: ["3782"],
incompleteSections: [
{
Expand Down

0 comments on commit e186075

Please sign in to comment.