After payments have been done to a loan, all liquidity providers earn a share of the BTC rewards. They claim this by completing a reward withdrawal.
withdraw-rewards()function on the
supplier-interfacecontract is called to lock the rewards in the
(btc-version (buff 1))
(btc-hash (buff 20))