hifi-finance / hifi

Monorepo implementing the Hifi fixed-rate, fixed-term lending protocol
https://app.hifi.finance
Other
106 stars 15 forks source link

[protocol] Initialize list of non-recoverable tokens in HToken constructor #25

Closed PaulRBerg closed 3 years ago

PaulRBerg commented 3 years ago

Done in https://github.com/hifi-finance/hifi/commit/c743c4e2e6ca97ef5cc005e04bdebc6313ea7308.

PaulRBerg commented 3 years ago

Update: as explained here, it is not possible to call the external function of a contract from within that contract's constructor.

I went around that limitation by writing to internal storage directly: https://github.com/hifi-finance/hifi/commit/e77a0fb708bf00556c15c3686c0e88561be838a0.