Repay your loan through a contract
If you are facing any problems that prevent you from repaying your loans on Nikaswap, you can use a loan agreement to repay directly. This article provides step-by-step instructions on how to do it.
Before you start
Before you begin, make sure you have the following information:
ID of the loan you want to repay. There are two ways to get the ID:
ID of the loan you want to repay. There are two ways to get the ID:
Check the Loan ID on the corresponding NFT Borrower Note Ticket in your wallet.
Check the notification email you received with the subject starting with "Upcoming due for loan, the number following Your loan is the loan ID.
A wallet with enough WETH for payment. (Not necessarily your wallet)
WETH Approval
If you have never approved WETH in your Nikaswap loan agreement:
Click the "Connect to Web3" button to connect to your wallet.
Expand 1. approve (0x095ea7b3) function section. Enter 0xef887e8b1c06209f59e8ae55d0e625c937344376 in the guy (address) input.
Enter 1000000000000000000000 in the wad (uint256) input. (Approve 1000 ETH, adjust number if desired).
Click the "Write" button and confirm the transaction in your wallet.
Loan Refund
Open etherscan.io page of NIKASWAP loan
Click the "Connect to Web3" button to connect to your wallet if not already connected.
Expansion 9. repay (0xe7610eb1) function section
Enter the ID of your loan in the _loanId (uint32) input.
Click the Write button and confirm the transaction in your wallet.
Once the transaction is confirmed on-chain, your loan will be repaid and the status on Nikaswap will update within 1-2 minutes.
Last updated