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

What does uint8(3) mean as a function signature? #149

Open
eulerbeat5 opened this issue Jul 28, 2022 · 1 comment
Open

What does uint8(3) mean as a function signature? #149

eulerbeat5 opened this issue Jul 28, 2022 · 1 comment

Comments

@eulerbeat5
Copy link

@hoytech
Copy link
Contributor

hoytech commented Aug 3, 2022

Hi! Here, the number 3 should be interpreted as a uint8, which then is encodePacked into a single byte. So this is basically gluing 0x03 onto the beginning of the call-data.

In answer to your question, when proxies are invoked from their "parent" (ie the main euler contract), they use a special non-standard calldata encoding. The 3 here indicates that there are 3 arguments to log (including the Transfer signature). The full details are here: https://docs.euler.finance/developers/proxy-protocol#module-greater-than-proxy

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants