This repository has been archived by the owner on Jan 24, 2024. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(abracadabra): Add support for magicAPE (#2341)
* feat: Add abstract Erc4626VaultTemplateTokenFetcher * feat(abracadabra): Add support for magicAPE * feat(abracadabra): Add support for magicAPE cauldron * refactor: Use Erc4627VaultTemplateTokenFetcher for magicGLP --------- Co-authored-by: William Poulin <will@zapper.fi>
- Loading branch information
Showing
17 changed files
with
2,871 additions
and
797 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
14 changes: 14 additions & 0 deletions
14
src/apps/abracadabra/ethereum/abracadabra.magic-ape.token-fetcher.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { PositionTemplate } from '~app-toolkit/decorators/position-template.decorator'; | ||
import { Erc20 } from '~contract/contracts'; | ||
import { GetDisplayPropsParams } from '~position/template/app-token.template.types'; | ||
import { Erc4626VaultTemplateTokenFetcher } from '~position/template/erc4626-vault.template.token-fetcher'; | ||
|
||
@PositionTemplate() | ||
export class EthereumAbracadabraMagicApeTokenFetcher extends Erc4626VaultTemplateTokenFetcher { | ||
groupLabel = 'Magic APE'; | ||
vaultAddress = '0xf35b31B941D94B249EaDED041DB1b05b7097fEb6'; | ||
|
||
async getLabel({ contract }: GetDisplayPropsParams<Erc20>): Promise<string> { | ||
return contract.name(); | ||
} | ||
} |
Oops, something went wrong.