Set
repay_all to close the debt position when the payment covers remaining shares. Interest continues until the shares are gone.
Perps and Farm close paths repay as part of the unwind. You usually do not repay those legs by hand unless a close left residual debt.
