🖥️
Term Finance v1 Developer Documentation
  • Overview
  • Term Finance Protocol
    • Term Repo
      • Term Auction Group
        • Initialization Parameters
        • Administrative Functions
      • Term Servicer Group
        • Initialization Parameters
        • Administrative Functions
      • Term Repo Token
        • Initialization Parameters
        • Administrative Functions
    • Protocol Contracts
      • Price Feeds
    • Conventions
    • Terminology
  • Access Controls
    • Upgradeability
  • Deployed Contracts
    • Smart Contract Audits
    • Formal Verification
    • [Ethereum]
    • [Avalanche]
  • Protocol Security
    • Smart Contract Monitoring
    • Front-End Security
  • Solidity API - latest
    • Term Repo Class
      • Term Auction Group
        • TermAuction.sol
        • TermAuctionBidLocker.sol
        • TermAuctionOfferLocker.sol
      • Term Servicer Group
        • TermRepoServicer.sol
        • TermRepoLocker.sol
        • TermRepoCollateralManager.sol
        • TermRepoRolloverManager.sol
      • TermRepoToken.sol
    • Protocol Class
      • TermController.sol
      • TermEventEmitter.sol
      • TermInitializer.sol
      • TermPriceConsumerV3.sol
  • Solidity API - 0.5.31
    • Term Repo Class
      • Term Auction Group
        • TermAuction.sol
        • TermAuctionBidLocker.sol
        • TermAuctionOfferLocker.sol
      • Term Servicer Group
        • TermRepoServicer.sol
        • TermRepoLocker.sol
        • TermRepoCollateralManager.sol
        • TermRepoRolloverManager.sol
      • TermRepoToken.sol
    • Protocol Class
      • TermController.sol
      • TermEventEmitter.sol
      • TermInitializer.sol
      • TermPriceConsumerV3.sol
  • Solidity API - 0.5.32
    • Term Repo Class
      • Term Auction Group
        • TermAuction.sol
        • TermAuctionBidLocker.sol
        • TermAuctionOfferLocker.sol
      • Term Servicer Group
        • TermRepoServicer.sol
        • TermRepoLocker.sol
        • TermRepoCollateralManager.sol
        • TermRepoRolloverManager.sol
      • TermRepoToken.sol
    • Protocol Class
      • TermController.sol
      • TermEventEmitter.sol
      • TermInitializer.sol
      • TermPriceConsumerV3.sol
  • Solidity API - 0.6.0
    • Term Repo Class
      • Term Auction Group
        • TermAuction.sol
        • TermAuctionBidLocker.sol
        • TermAuctionOfferLocker.sol
      • Term Servicer Group
        • TermRepoServicer.sol
        • TermRepoLocker.sol
        • TermRepoCollateralManager.sol
        • TermRepoRolloverManager.sol
      • TermRepoToken.sol
    • Protocol Class
      • TermController.sol
      • TermEventEmitter.sol
      • TermInitializer.sol
      • TermPriceConsumerV3.sol
  • Solidity API - 0.9.0
    • Term Repo Class
      • Term Auction Group
        • TermAuction.sol
        • TermAuctionBidLocker.sol
        • TermAuctionOfferLocker.sol
      • Term Servicer Group
        • TermRepoServicer.sol
        • TermRepoLocker.sol
        • TermRepoCollateralManager.sol
        • TermRepoRolloverManager.sol
      • TermRepoToken.sol
    • Protocol Class
      • TermController.sol
      • TermEventEmitter.sol
      • TermInitializer.sol
      • TermPriceConsumerV3.sol
  • DeFiSafety - detailed report
  • Github Repo
  • Periphery Contracts
    • Blue Sheets
      • Core Architecture
      • Core Functionality
      • Administration
      • Deployed Contracts
        • Smart Contract Audits
        • [Ethereum]
      • Solidity API - latest
        • RepoTokenLinkedList.sol#RepoTokenLinkedList
        • RepoTokenLinkedList.sol#RepoTokenLinkedListStorageV1
        • RepoTokenLinkedListEventEmitter.sol
        • TermDiscountRateAdapter.sol
    • Github Repo
    • Term Strategy Vaults
      • Core Architecture
        • Yearn V3 Framework
        • Term Integration
      • Core Functionality
        • YearnV3 Base Operations
        • Term Protocol Operations
          • Core Integration
          • Portfolio Valuation
          • Protocol Interactions
          • Portfolio Constraints
      • Administration
        • Yearn Roles & Governance
        • Term Vault Governance
      • Configuration Guide
      • Deployed Contracts
        • Smart Contract Audits
        • [Ethereum]
      • Solidity API - latest
        • RepoTokenList.sol#RepoTokenList
        • RepoTokenList.sol#RepoTokenListData
        • RepoTokenList.sol#RepoTokenListNode
        • RepoTokenUtils.sol#RepoTokenUtils
        • Strategy.sol#Strategy
        • TermAuctionList.sol#TermAuctionList
        • TermAuctionList.sol#PendingOffer
        • TermAuctionList.sol#TermAuctionListData
        • TermAuctionList.sol#TermAuctionListNode
        • TermDiscountRateAdapter.sol#TermDiscountRateAdapter
        • TermVaultEventEmitter.sol#TermVaultEventEmitter
        • TermFinanceVaultWrappedVotesToken.sol#TermFinanceVaultWrappedVotesToken
    • Github Repo
Powered by GitBook
On this page
  • TermRepoRolloverManager
  • ADMIN_ROLE
  • DEVOPS_ROLE
  • INITIALIZER_ROLE
  • ROLLOVER_BID_FULFILLER_ROLE
  • termRepoId
  • termRepoCollateralManager
  • termRepoServicer
  • termController
  • emitter
  • approvedRolloverAuctions
  • rolloverElections
  • termContractPaired
  • whileNotMatured
  • notTermContractPaired
  • constructor
  • initialize
  • pairTermContracts
  • electRollover
  • getRolloverInstructions
  • cancelRollover
  • fulfillRollover
  • approveRolloverAuction
  • revokeRolloverApproval
  • _processRollover
  • _authorizeUpgrade
  1. Solidity API - 0.5.32
  2. Term Repo Class
  3. Term Servicer Group

TermRepoRolloverManager.sol

This contract belongs to the Term Servicer group of contracts and is specific to a Term Repo deployment. This contract accepts and carries out borrower Term Repo rollover instructions.

TermRepoRolloverManager

This contract accepts and carries out borrower Term Repo rollover instructions

This contract belongs to the Term Servicer group of contracts and is specific to a Term Repo deployment

ADMIN_ROLE

bytes32 ADMIN_ROLE

DEVOPS_ROLE

bytes32 DEVOPS_ROLE

INITIALIZER_ROLE

bytes32 INITIALIZER_ROLE

ROLLOVER_BID_FULFILLER_ROLE

bytes32 ROLLOVER_BID_FULFILLER_ROLE

termRepoId

bytes32 termRepoId

termRepoCollateralManager

contract ITermRepoCollateralManager termRepoCollateralManager

termRepoServicer

contract ITermRepoServicer termRepoServicer

termController

contract ITermController termController

emitter

contract ITermEventEmitter emitter

approvedRolloverAuctions

mapping(address => bool) approvedRolloverAuctions

rolloverElections

mapping(address => struct TermRepoRolloverElection) rolloverElections

termContractPaired

bool termContractPaired

whileNotMatured

modifier whileNotMatured()

notTermContractPaired

modifier notTermContractPaired()

constructor

constructor() public

initialize

function initialize(string termRepoId_, contract ITermRepoServicer termRepoServicer_, contract ITermRepoCollateralManager termRepoCollateralManager_, contract ITermController termController_, address termInitializer_) external

pairTermContracts

function pairTermContracts(address termRepoServicer_, contract ITermEventEmitter emitter_, address devopsMultisig_, address adminWallet_) external

electRollover

function electRollover(struct TermRepoRolloverElectionSubmission termRepoRolloverElectionSubmission) external

An external function that accepted Term Repo rollover instructions

Parameters

Name
Type
Description

termRepoRolloverElectionSubmission

struct TermRepoRolloverElectionSubmission

A struct containing borrower rollover instructions

getRolloverInstructions

function getRolloverInstructions(address borrower) external view returns (struct TermRepoRolloverElection)

A view function that returns borrower rollover instructions

Parameters

Name
Type
Description

borrower

address

The address of the borrower

Return Values

Name
Type
Description

[0]

struct TermRepoRolloverElection

A struct containing borrower rollover instructions

cancelRollover

function cancelRollover() external

An external function to cancel previously submitted rollover instructions

fulfillRollover

function fulfillRollover(address borrower) external

An external function called by repo servicer to mark rollover as fulfilled

Parameters

Name
Type
Description

borrower

address

The address of the borrower

approveRolloverAuction

function approveRolloverAuction(contract ITermAuctionBidLocker auctionBidLocker, address termAuction) external

Parameters

Name
Type
Description

auctionBidLocker

contract ITermAuctionBidLocker

The ABI for ITermAuctionBidLocker interface

termAuction

address

The address of TermAuction contract to mark as eligible for rollover

revokeRolloverApproval

function revokeRolloverApproval(contract ITermAuctionBidLocker auctionBidLocker) external

Parameters

Name
Type
Description

auctionBidLocker

contract ITermAuctionBidLocker

The ABI for ITermAuctionBidLocker interface

_processRollover

function _processRollover(address borrowerToRollover) internal

_authorizeUpgrade

function _authorizeUpgrade(address impl) internal

required override by the OpenZeppelin UUPS module

Parameters

Name
Type
Description

impl

address

new impl address for proxy upgrade

Last updated 1 year ago