Withdrawing
You withdraw from the Lend page. Your money comes out in one of two ways, and the state of the pool decides which, not you.
Straight away
If the pool has cash available and nobody is waiting ahead of you, you're paid in the same step, at whatever your share is worth at that moment. If the pool can only cover part of what you asked for, that part is paid now and the rest joins the queue.
Through the queue
When the pool's money is lent out, or other lenders are already waiting, your withdrawal joins a queue. Requests are paid first come, first served, as borrowers repay. If the pool can only pay part of a request, it pays that part and the request stays at the front for the rest, so you don't lose your place.
You keep earning while you wait, because what you're paid is worked out when you're paid, not when you asked. Interest earned while you wait raises it, and a default while you wait lowers it.
You can cancel at any time before you're paid, and your share goes back into your balance. Your queued withdrawals show on the Lend page.
How long it can take
That depends on when borrowers repay. Our loans last days rather than months, so cash comes back often, but nothing guarantees when, and defaults or a busy pool can make the wait longer.
Not all the cash in the pool can be withdrawn, either. Some is set aside for money the pool already owes, such as recoveries owed to earlier lenders.
In an emergency, MLKY can pause withdrawals. While a pause is on you can't withdraw, but you can still cancel a queued withdrawal.
The SOL deposit stays
Your first deposit set aside a small amount of SOL for your lender record. That deposit isn't returned when you withdraw, even if you take everything out.
Recoveries are separate
Money recovered from a defaulted loan isn't part of a withdrawal. You claim it on its own, under Recovery on the Lend page. How lending works explains where it comes from.