Gearbox-protocol / core-v3

Other
28 stars 4 forks source link

feat: phantom token withdrawals #242

Closed lekhovitsky closed 2 months ago

lekhovitsky commented 3 months ago

This PR introduces the notion of phantom tokens that allow to use non-tokenized positions in integrated protocols as collateral. While phantom tokens existed before, the core was not aware of them, which ended up blocking withdrawals which are crucial for partial liquidations and some bots. Here we add support of phantom token withdrawals by prepending the simple adapter call that unwraps the position prior to withdrawing funds from a credit account.

github-actions[bot] commented 2 months ago

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

The release is available on:

Your semantic-release bot :package::rocket: