Gearbox-protocol / core-v3

Other
28 stars 4 forks source link

feat: treat all non-underlying tokens as quoted #202

Closed lekhovitsky closed 5 months ago

lekhovitsky commented 5 months ago

All collateral tokens are now considered quoted (credit configurator forbids adding non-quoted tokens as collateral), while underlying token is always considered enabled. The former allows to make the system stricter and remove a huge pile of dead code related to enabling/disabling tokens, while the latter allows to prevent liquidations during pause by sending underlying directly to credit account.

While it's encouraged to use new credit managers going forward, new facade and configurator are compatible with existing ones, with two important remarks:

Additionally, this PR removes all functionality related to revokeAdapterAllowances.

lekhovitsky commented 5 months ago

Note on compatibility of new facades with old credit managers:

github-actions[bot] commented 5 months ago

:tada: This PR is included in version 1.50.0-next.3 :tada:

The release is available on:

Your semantic-release bot :package::rocket: