Sienna
  • Introduction
  • SiennaSwap
    • Rewards Contracts
    • How do the Rewards Work?
  • Wallets
  • Bridges
    • Available Bridges
    • Bridging SIENNA
    • Ethereum Bridge Guide
    • Binance Smart Chain Bridge Guide
    • Monero Bridge
  • Viewing Keys
    • How to Create Viewing Keys
    • How to Remove Viewing Keys
    • How to Import Existing Viewing Key
  • Contract Addresses
    • SiennaSwap LP Pools and Rewards Contracts
    • SiennaLend Markets and Rewards Contracts
  • IBC Wrapping
    • Supported Tokens
    • Links
    • How to Deposit/Withdraw IBC Tokens on SiennaSwap
    • How to Wrap/Unwrap IBC Tokens on SiennaSwap
  • SiennaLend
    • Overview
    • Rewards Contracts
    • Markets
    • Interest Model
    • Market Contract
    • Loan Repayment
    • Overseer Contract
    • Notes
    • SiennaLend User Guide
  • Audits
    • SIENNA
    • wSIENNA
    • Rewards V3
    • SiennaSwap V1
    • SiennaSwap V2
    • SiennaLend
    • SiennaLend updated code
  • Frequently Asked Questions
Powered by GitBook
On this page
  1. SiennaLend

Loan Repayment

It is a common scenario for users to want to repay their loan in full. During the time between submitting the repay TX and it actually being executed, interest might be accrued thus causing the repay amount provided to not repay the loan in full. To prevent this users are forced to send a slightly larger repay amount to the market contract. Now any remainder is given back to the user when the repay amount > borrow balance.

Note that this is not implemented for liquidations.

Example: If a user has borrowed 100 SSCRT and repays 101 SSCRT, the contract will then send them back the change: 1 SSCRT. This will prevent the loss of funds when repaying loans.

PreviousMarket ContractNextOverseer Contract

Last updated 3 years ago