CryptoStats Forum Archive

Abracadabra SPELL - fee revenue

Created Oct 20, 2021·1,043 views·0 replies·0 likes
BowTiedIguana
Oct 20, 2021, 01:06 AM

can I request Abracadabra SPELL fees on CryptoFees?
Here is a repo for fee calculation logic:

David
Dec 27, 2021, 09:03 PM

Thought I’d share the update here:

@BowTiedIguana messaged with the team at Abracadabra, who said that their fees API isn’t currently available to the public. We’ll wait for an update on that.

David
Dec 27, 2021, 09:34 PM

One more update:

@BowTiedIguana shared some code that was previously used for tracking MIM fees:

Looking through the code, it seems pretty simple to track the LogAccrued events on each Cauldron contract.

I put together this simple subgraph that tracks a single Cauldron:

https://thegraph.com/hosted-service/subgraph/dmihal/abracadabra-fees-ethereum

Source code:

All that needs to be done is to auto-detect Cauldrons that are deployed and index them all. this can be done by tracking LogDeploy events emitted by BentoBox with a MasterContract of 0x1df188958a8674b5177f77667b8d173c3cdd9e51. (Sample tx)

ap0calyp
Dec 29, 2021, 09:48 PM

Thanks for the inspiration!