Maple
  • Welcome to Maple
  • Maple for Lenders
    • Introduction
    • Lending
    • Defaults and Impairments
    • Margin Calls and Liquidations
    • Risk
    • Withdrawal Process
  • syrupUSDC for Lenders
    • Powered by Maple
    • Lending in syrupUSDC and syrupUSDT
    • Commitments
    • Drips Rewards
    • Withdrawals
    • Monthly Updates
    • Pendle Integration
  • SyrupUSDC Rewards Prize Draw Program Summary
  • FAQ
  • Maple for Borrowers
    • Introduction
    • Loan Management
  • Maple for Token Holders
    • Introduction to SYRUP
      • MPL to SYRUP Conversion
      • FAQs
    • SYRUP Tokenomics
      • Staking
      • Staking Smart Contract Details
    • Governance and Voting
    • Drips Rewards
    • Research and Media
      • Podcasts
      • News Articles
      • TV Segments
      • Research Reports
      • Data Dashboards
    • Additional Resources
  • Technical Resources
    • Protocol Overview
      • Background
      • Protocol Actors
      • Smart Contract Architecture
      • Glossary
      • Smart Contract Addresses
      • Fees
      • Composability
      • Proxies and Upgradeability
    • Security
      • Security
      • List of Assumptions
      • External Entry Points
      • Emergency Protocol Pause
      • Protocol Invariants
      • Test Report
    • Loans
      • Loans
      • Fixed Term Loans
      • Open Term Loans
      • Refinancing
      • Impairments
      • Defaults
    • Pools
      • Pools
      • Pool Creation
      • PoolManager
      • PoolDelegateCover
      • Accounting
        • Pool Accounting
        • Pool Exchange Rates
    • Strategies
      • Fixed Term Loan Manager
        • Overview
        • Claims
        • Advance Payment Accounting
        • Accounting Examples
      • Open Term Loan Manager
      • DeFi Strategies
    • Withdrawal Managers
      • WithdrawalManager (Cyclical)
      • WithdrawalManager (Queue)
    • Singletons
      • Globals
      • MapleTreasury
      • Oracles
      • Pool Permission Manager
    • Admin Functions
      • Governor Admin Actions
        • Operational Admin Actions
      • Pool Delegate Admin Actions
      • Timelocks
    • Operations
      • Protocol Deployment
      • Open Term Loan Deployment
      • December 2023 Deployment & Upgrade Procedure
      • Strategies Release Deployment Procedure
    • Interfaces
      • FixedTermLoan
      • FixedTermLoanFactory
      • FixedTermLoanFeeManager
      • FixedTermLoanInitializer
      • FixedTermLoanManager
      • FixedTermLoanManagerFactory
      • FixedTermLoanManagerInitializer
      • FixedTermLoanRefinancer
      • Globals
      • Liquidator
      • LiquidatorFactory
      • LiquidatorInitializer
      • OpenTermLoan
      • OpenTermLoanFactory
      • OpenTermLoanInitializer
      • OpenTermLoanManager
      • OpenTermLoanManagerFactory
      • OpenTermLoanManagerInitializer
      • OpenTermLoanRefinancer
      • Pool
      • PoolDelegateCover
      • PoolDeployer
      • PoolManager
      • PoolManagerFactory
      • PoolManagerInitializer
      • PoolPermissionManager
      • WithdrawalManager (Cyclical)
      • WithdrawalManagerFactory (Cyclical)
      • WithdrawalManagerInitializer (Cyclical)
      • WithdrawalManager (Queue)
      • WithdrawalManagerFactory (Queue)
      • WithdrawalManagerInitializer (Queue)
    • SYRUP Token
      • Architectural Overview
      • Base ERC20 Structure
      • Upgradability
      • Modules
      • Time Locks
      • Recapitalization Module
      • Emergency Module
      • Deployment and Migration Procedure
    • GraphQL API
    • SDK
      • Introduction
      • Installation
      • Protocol Actors
      • Usage Guide
  • Troubleshooting & Support
    • Intercom
  • Maple 1.0
    • Access to deprecated Maple 1.0
  • Legal
    • Borrower MLA
    • KYC
    • Interface Terms of Use
    • Privacy Policy
    • syrupUSDC and syrupUSDT - Risks
    • syrupUSDC and syrupUSDT - Defaults and Impairments
    • syrupUSDC and syrupUSDT - Available Jurisdictions
    • Interface Terms of Use [syrupUSDC and syrupUSDT]
    • Interface Terms of Use [Syrup.fi/convert/ and Syrup.fi/stake/]
    • syrupUSDC and syrupUSDT- Privacy Policy
    • SyrupUSDC Rewards Prize Draw Terms & Conditions
Powered by GitBook
On this page
  • Functions
  • borrower
  • calledPrincipal
  • dateCalled
  • dateFunded
  • dateImpaired
  • datePaid
  • decreasePrincipal
  • delegateServiceFeeRate
  • fundsAsset
  • gracePeriod
  • increasePrincipal
  • interestRate
  • lateFeeRate
  • lateInterestPremiumRate
  • lender
  • noticePeriod
  • paymentInterval
  • pendingBorrower
  • pendingLender
  • platformServiceFeeRate
  • principal
  • refinanceCommitment
  • setDelegateServiceFeeRate
  • setGracePeriod
  • setInterestRate
  • setLateFeeRate
  • setLateInterestPremiumRate
  • setNoticePeriod
  • setPaymentInterval
  • Events
  • DelegateServiceFeeRateSet
  • GracePeriodSet
  • InterestRateSet
  • LateFeeRateSet
  • LateInterestPremiumRateSet
  • NoticePeriodSet
  • PaymentIntervalSet
  • PrincipalDecreased
  • PrincipalIncreased
  1. Technical Resources
  2. Interfaces

OpenTermLoanRefinancer

\

Functions

borrower

    function borrower()
        view
        returns (
            address
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

address

address

\

calledPrincipal

    function calledPrincipal()
        view
        returns (
            uint256
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

uint256

uint256

\

dateCalled

    function dateCalled()
        view
        returns (
            uint40
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

uint40

uint40

\

dateFunded

    function dateFunded()
        view
        returns (
            uint40
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

uint40

uint40

\

dateImpaired

    function dateImpaired()
        view
        returns (
            uint40
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

uint40

uint40

\

datePaid

    function datePaid()
        view
        returns (
            uint40
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

uint40

uint40

\

decreasePrincipal

Function to decrease the principal during a refinance.

    function decreasePrincipal(
        uint256 amount_
    )
        nonpayable;

Parameters:

Index
Name
Type
Internal Type
Description

0

amount_

uint256

uint256

The amount of which the value will decrease by.

\

delegateServiceFeeRate

    function delegateServiceFeeRate()
        view
        returns (
            uint64
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

uint64

uint64

\

fundsAsset

    function fundsAsset()
        view
        returns (
            address
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

address

address

\

gracePeriod

    function gracePeriod()
        view
        returns (
            uint32
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

uint32

uint32

\

increasePrincipal

Function to increase the principal during a refinance.

    function increasePrincipal(
        uint256 amount_
    )
        nonpayable;

Parameters:

Index
Name
Type
Internal Type
Description

0

amount_

uint256

uint256

The amount of which the value will increase by.

\

interestRate

    function interestRate()
        view
        returns (
            uint64
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

uint64

uint64

\

lateFeeRate

    function lateFeeRate()
        view
        returns (
            uint64
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

uint64

uint64

\

lateInterestPremiumRate

    function lateInterestPremiumRate()
        view
        returns (
            uint64
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

uint64

uint64

\

lender

    function lender()
        view
        returns (
            address
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

address

address

\

noticePeriod

    function noticePeriod()
        view
        returns (
            uint32
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

uint32

uint32

\

paymentInterval

    function paymentInterval()
        view
        returns (
            uint32
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

uint32

uint32

\

pendingBorrower

    function pendingBorrower()
        view
        returns (
            address
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

address

address

\

pendingLender

    function pendingLender()
        view
        returns (
            address
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

address

address

\

platformServiceFeeRate

    function platformServiceFeeRate()
        view
        returns (
            uint64
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

uint64

uint64

\

principal

    function principal()
        view
        returns (
            uint256
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

uint256

uint256

\

refinanceCommitment

    function refinanceCommitment()
        view
        returns (
            bytes32
        );

Return Values:

Index
Name
Type
Internal Type
Description

0

bytes32

bytes32

\

setDelegateServiceFeeRate

Function to set the delegateServiceFeeRate during a refinance. The rate is denominated in 1e18 units.

    function setDelegateServiceFeeRate(
        uint64 delegateServiceFeeRate_
    )
        nonpayable;

Parameters:

Index
Name
Type
Internal Type
Description

0

delegateServiceFeeRate_

uint64

uint64

The new value for delegateServiceFeeRate.

\

setGracePeriod

Function to set the gracePeriod during a refinance.

    function setGracePeriod(
        uint32 gracePeriod_
    )
        nonpayable;

Parameters:

Index
Name
Type
Internal Type
Description

0

gracePeriod_

uint32

uint32

The new value for gracePeriod.

\

setInterestRate

Function to set the interestRate during a refinance. The interest rate is measured with 18 decimals of precision.

    function setInterestRate(
        uint64 interestRate_
    )
        nonpayable;

Parameters:

Index
Name
Type
Internal Type
Description

0

interestRate_

uint64

uint64

The new value for interestRate.

\

setLateFeeRate

Function to set the lateFeeRate during a refinance.

    function setLateFeeRate(
        uint64 lateFeeRate_
    )
        nonpayable;

Parameters:

Index
Name
Type
Internal Type
Description

0

lateFeeRate_

uint64

uint64

The new value for lateFeeRate.

\

setLateInterestPremiumRate

Function to set the lateInterestPremiumRate during a refinance.

    function setLateInterestPremiumRate(
        uint64 lateInterestPremiumRate_
    )
        nonpayable;

Parameters:

Index
Name
Type
Internal Type
Description

0

lateInterestPremiumRate_

uint64

uint64

The new value for lateInterestPremiumRate.

\

setNoticePeriod

Function to set the noticePeriod during a refinance.

    function setNoticePeriod(
        uint32 noticePeriod_
    )
        nonpayable;

Parameters:

Index
Name
Type
Internal Type
Description

0

noticePeriod_

uint32

uint32

The new value for noticePeriod.

\

setPaymentInterval

Function to set the paymentInterval during a refinance. The interval is denominated in seconds.

    function setPaymentInterval(
        uint32 paymentInterval_
    )
        nonpayable;

Parameters:

Index
Name
Type
Internal Type
Description

0

paymentInterval_

uint32

uint32

The new value for paymentInterval.

\

Events

DelegateServiceFeeRateSet

The value for the service fee rate for the PoolDelegate (1e18 units).

    event DelegateServiceFeeRateSet(
        uint64 delegateServiceFeeRate_
    );

Parameters:

Index
Name
Type
Internal Type
Description

0

delegateServiceFeeRate_

uint64

uint64

The new value for delegateServiceFeeRate.

\

GracePeriodSet

A new value for gracePeriod has been set.

    event GracePeriodSet(
        uint256 gracePeriod_
    );

Parameters:

Index
Name
Type
Internal Type
Description

0

gracePeriod_

uint256

uint256

The new value for gracePeriod.

\

InterestRateSet

A new value for interestRate has been set.

    event InterestRateSet(
        uint64 interestRate_
    );

Parameters:

Index
Name
Type
Internal Type
Description

0

interestRate_

uint64

uint64

The new value for interestRate.

\

LateFeeRateSet

A new value for lateFeeRate has been set.

    event LateFeeRateSet(
        uint64 lateFeeRate_
    );

Parameters:

Index
Name
Type
Internal Type
Description

0

lateFeeRate_

uint64

uint64

The new value for lateFeeRate.

\

LateInterestPremiumRateSet

A new value for lateInterestPremiumRate has been set.

    event LateInterestPremiumRateSet(
        uint64 lateInterestPremiumRate_
    );

Parameters:

Index
Name
Type
Internal Type
Description

0

lateInterestPremiumRate_

uint64

uint64

The new value for lateInterestPremiumRate.

\

NoticePeriodSet

A new value for noticePeriod has been set.

    event NoticePeriodSet(
        uint256 noticePeriod_
    );

Parameters:

Index
Name
Type
Internal Type
Description

0

noticePeriod_

uint256

uint256

The new value for noticedPeriod.

\

PaymentIntervalSet

A new value for paymentInterval has been set.

    event PaymentIntervalSet(
        uint256 paymentInterval_
    );

Parameters:

Index
Name
Type
Internal Type
Description

0

paymentInterval_

uint256

uint256

The new value for paymentInterval.

\

PrincipalDecreased

The value of the principal has been decreased.

    event PrincipalDecreased(
        uint256 decreasedBy_
    );

Parameters:

Index
Name
Type
Internal Type
Description

0

decreasedBy_

uint256

uint256

The amount of which the value was decreased by.

\

PrincipalIncreased

The value of the principal has been increased.

    event PrincipalIncreased(
        uint256 increasedBy_
    );

Parameters:

Index
Name
Type
Internal Type
Description

0

increasedBy_

uint256

uint256

The amount of which the value was increased by.

\

PreviousOpenTermLoanManagerInitializerNextPool

Last updated 6 months ago