> For the complete documentation index, see [llms.txt](https://docs.altitude.fi/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.altitude.fi/general/protocol-overview/how-do-users-interact-with-a-vault/repay.md).

# Repay

User transfers vault borrow assets to reduce their own debt or the debt of another user who has approved them to repay

`repay(uint256 amount, address onBehalfOf)`

* amount - amount the user wants to withdraw
* onBehalfOf - address onBehalfOf who the loan should be repaid
