EGORAS
Search…
Repay Loan
The repayLoan function transfers an asset into the protocol, reducing the organisation's borrow balance.
1
function repayLoan(uint _loanID) external;
Copied!
  • _loanID: The unique identifier of every loan emitted from Egoras Microfinance protocol.

Solidity

1
CEGORAS egoras = CEGORAS(0x7a24C....);
2
require(egoras.repayLoan(“20"), "unable to repay loan");
Copied!

Web3

1
const instance = await new web3.eth.Contract(abi, address)
2
await instance.methods.repayLoan("20").send({from: 0xMyAccount});
Copied!
Last modified 1yr ago
Copy link