Skip to content

Commit 2948a08

Browse files
committed
update aerodrome
1 parent 0ad66da commit 2948a08

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

protocols/aerodrome.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ const aerodrome: Protocol = {
8282
`https://github.com/aerodrome-finance/contracts/blob/main/contracts/Minter.sol#L170-L198`,
8383
],
8484
protocolIds: ["parent#aerodrome", "3450", "4524"],
85+
excludeFromAdjustedSupply: ["LP Emissions", "Team Emissions"],
8586
incompleteSections: [
8687
{
8788
lastRecord: (backfill: boolean) => latest("aerodrome", start, backfill),

types/adapters.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,7 @@ export type Metadata = {
171171
total?: number;
172172
chain?: string;
173173
changeHistory?: ChangeHistoryEntry[];
174+
excludeFromAdjustedSupply?: string[];
174175
};
175176
export type FuturesData = {
176177
openInterest: number;

utils/v2-processor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,8 @@ export class V2Processor {
271271
categories[cat].includes(sectionName),
272272
);
273273

274-
const isV1Incentive = sectionCategory === "farming";
274+
const excludeFromAdjusted = (fullProtocol.meta as any).excludeFromAdjustedSupply || [];
275+
const isV1Incentive = sectionCategory === "farming" || excludeFromAdjusted.includes(sectionName);
275276
const isV1TBD = sectionCategory === "noncirculating";
276277

277278
if (isV1Incentive) {

0 commit comments

Comments
 (0)