Before borrowing you need to deposit any asset to be used as collateral (check out the Depositing & Earning FAQ section for more info). After this, simply click on the asset at the borrow side that you want to borrow. Set the amount you need based on your available deposits that would be used as a collateral for the loan.
The maximum amount you can borrow depends on the value you have deposited and the available liquidity. For example, you can’t borrow an asset if there is not enough liquidity or if your borrow limit doesn’t allow you to. You can find every collateral available and its specific parameters for borrowing in the Collateral Factor & Reserve Factor section.
You repay your loan in the same asset you borrowed. For example, if you borrow 1 ETH you will pay back 1 ETH + interest accrued.
The interest rate you pay for borrowing assets depends on the borrowing rate which is derived from the supply and demand ratio of the asset. You can find your current borrowing rate at any time in the Borrowings section of your dashboard.
In order to payback the loan you simply go to the Borrowings section of your dashboard and click on the repay tab for the asset you borrowed and want to repay. Select the amount to pay back and confirm the transaction.
In order to avoid the reduction of your health factor leading to liquidation, you can repay the loan or deposit more assets in order to avoid liquidation.