Skip to content
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

Build PoC for byte data extraction #174

Open
viniabussafi opened this issue Nov 14, 2024 · 1 comment
Open

Build PoC for byte data extraction #174

viniabussafi opened this issue Nov 14, 2024 · 1 comment
Assignees

Comments

@viniabussafi
Copy link
Member

No description provided.

@viniabussafi viniabussafi self-assigned this Nov 14, 2024
@viniabussafi
Copy link
Member Author

SELECT
contract_address,
evt_tx_hash,
varbinary_to_int256(BYTEARRAY_SUBSTRING(feeCache,1, 8)) AS unused,
varbinary_to_int256(BYTEARRAY_SUBSTRING(feeCache, 9, 16)) AS aum_fee,
varbinary_to_int256(BYTEARRAY_SUBSTRING(feeCache, 17, 24)) AS yield_fee,
varbinary_to_int256(BYTEARRAY_SUBSTRING(feeCache, 25, 32)) AS swap_fee
FROM defi_polygon.ManagedPool_evt_ProtocolFeePercentageCacheUpdated

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

No branches or pull requests

1 participant