delvtech / hyperdrive

An automated market maker for fixed and variable yield with on-demand terms.
Apache License 2.0
33 stars 4 forks source link

Everlong Partial Position Closures #1194

Closed mcclurejt closed 3 weeks ago

mcclurejt commented 1 month ago

When a withdraw exceeds the amount of idle liquidity held by Everlong, but is less than the value of the entire most mature position, close only enough of the position to fulfill the withdrawal.