Skip to content

Update Centrifuge #15700

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jul 29, 2025
Merged

Update Centrifuge #15700

merged 2 commits into from
Jul 29, 2025

Conversation

0xpeluche
Copy link
Contributor

No description provided.

@0xpeluche 0xpeluche self-assigned this Jul 29, 2025
@llamabutler
Copy link

The adapter at projects/centrifuge exports TVL:

ethereum                  483.09 M
arbitrum                  9.66 M
base                      4.83 M
plume_mainnet             0
avax                      0
bsc                       0

total                    497.57 M 

Comment on lines 68 to 76
const [tranches, shareClasses] = await Promise.all([
api.getLogs({ target: factory.TOKEN_FACTORY_V3, fromBlock: factory.START_BLOCK, toBlock: block, eventAbi: eventAbis.deployTranches, onlyArgs: true }),
api.getLogs({ target: factory.TOKEN_FACTORY_V3, fromBlock: factory.START_BLOCK, toBlock: block, eventAbi: eventAbis.addShareClass, onlyArgs: true })
])

allTranches.push(
...tranches.map(({ tranche }) => tranche),
...shareClasses.map(({ token }) => token)
)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
const [tranches, shareClasses] = await Promise.all([
api.getLogs({ target: factory.TOKEN_FACTORY_V3, fromBlock: factory.START_BLOCK, toBlock: block, eventAbi: eventAbis.deployTranches, onlyArgs: true }),
api.getLogs({ target: factory.TOKEN_FACTORY_V3, fromBlock: factory.START_BLOCK, toBlock: block, eventAbi: eventAbis.addShareClass, onlyArgs: true })
])
allTranches.push(
...tranches.map(({ tranche }) => tranche),
...shareClasses.map(({ token }) => token)
)
const tranches = await api.getLogs({ target: factory.TOKEN_FACTORY_V3, fromBlock: factory.START_BLOCK, toBlock: block, eventAbi: eventAbis.addShareClass, onlyArgs: true })
allTranches.push(..shareClasses.map(({ token }) => token))

@0xpeluche 0xpeluche merged commit 105f7f9 into DefiLlama:main Jul 29, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants