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

Market Contract

PreviousInterest ModelNextLoan Repayment

Last updated 3 years ago

The function of this contract is to allow accounts to deposit (supply capital), redeem (withdraw capital), borrow and repay a loan. Liquidators also liquidate underwater loans using the Market contract. In addition, the market itself represents a token (we call it sl-Token) which is minted to depositors upon supplying the underling asset that the given market is for. There is one instance per asset. It partially implements the SNIP-20 interface, enough to support basic balance queries and transfers while also being compatible with Keplr wallet. The exchange rate between the sl-Token and the underlying asset is not 1:1 but rather based on supply and demand. Functional equivalent to the in Compound.

cToken