Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
feat(llama-airforce): Add uPRISMA support
Browse files Browse the repository at this point in the history
  • Loading branch information
Alunara committed Jan 24, 2024
1 parent f507020 commit 9a2ddf9
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ export class EthereumLlamaAirforceAirdropContractPositionFetcher extends Contrac
address: '0x6788234f40931ca615b0d221c1afbf0ec07afcc5',
rewardTokenAddress: '0x8659fc767cad6005de79af65dafe4249c57927af', // uCVX
},
{
address: '0xf09320ed7db384cab7fce9ea9947436a806754d3',
rewardTokenAddress: '0x9bfd08d7b3cc40129132a17b4d5b9ea3351464bd', // uPRISMA
},
];
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export class EthereumLlamaAirforceMerkleCache extends MerkleCache<LlamaAirforceM
network = Network.ETHEREUM_MAINNET;

async resolveMerkleData() {
const [{ data: uCrvData }, { data: uFxsData }, { data: uCvxData }] = await Promise.all([
const [{ data: uCrvData }, { data: uFxsData }, { data: uCvxData }, { data: uPrismaData }] = await Promise.all([
axios.get<LlamaAirforceMerkleData>(
'https://raw.githubusercontent.com/0xAlunara/Llama-Airforce-Airdrops/master/ucrv/latest.json',
),
Expand All @@ -33,16 +33,21 @@ export class EthereumLlamaAirforceMerkleCache extends MerkleCache<LlamaAirforceM
axios.get<LlamaAirforceMerkleData>(
'https://raw.githubusercontent.com/0xAlunara/Llama-Airforce-Airdrops/master/ucvx/latest.json',
),
axios.get<LlamaAirforceMerkleData>(
'https://raw.githubusercontent.com/0xAlunara/Llama-Airforce-Airdrops/master/uprisma/latest.json',
),
]);

const uCrvTokenAddress = '0xde2bef0a01845257b4aef2a2eaa48f6eaeafa8b7';
const uFxsTokenAddress = '0x3a886455e5b33300a31c5e77bac01e76c0c7b29c';
const uCvxTokenAddress = '0x8659fc767cad6005de79af65dafe4249c57927af';
const uPrismaTokenAddress = '0x9bfd08d7b3cc40129132a17b4d5b9ea3351464bd';

return {
[uCrvTokenAddress]: uCrvData.claims,
[uFxsTokenAddress]: uFxsData.claims,
[uCvxTokenAddress]: uCvxData.claims,
[uPrismaTokenAddress]: uPrismaData.claims,
};
}
}

0 comments on commit 9a2ddf9

Please sign in to comment.