TermController.sol
This contract operates at the protocol level and governs all instances of a Term Repo. This contract manages Term Finance protocol permissions and controls
TermController
This contract manages Term Finance protocol permissions and controls
This contract operates at the protocol level and governs all instances of a Term Repo
ADMIN_ROLE
AUCTION_ROLE
CONTROLLER_ADMIN_ROLE
DEVOPS_ROLE
INITIALIZER_ROLE
SPECIALIST_ROLE
treasuryWallet
protocolReserveWallet
termAddresses
termAuctionResults
constructor
initialize
pairInitializer
pairAuction
Initializer function to pair a new Term Auction with the controller
Parameters
Name | Type | Description |
---|---|---|
auction | address | new auction address |
getTreasuryAddress
External view function which returns contract address of treasury wallet
getProtocolReserveAddress
External view function which returns contract address of protocol reserve
Return Values
Name | Type | Description |
---|---|---|
[0] | address | The protocol reserve address |
getTermAuctionResults
Returns history of all completed auctions within a term
Parameters
Name | Type | Description |
---|---|---|
termRepoId | bytes32 | term repo id to look up |
isTermDeployed
External view function which returns whether contract address is deployed by Term Finance Protocol
Parameters
Name | Type | Description |
---|---|---|
contractAddress | address | The input contract address to query |
Return Values
Name | Type | Description |
---|---|---|
[0] | bool | Whether the given address is deployed by Term Finance Protocol |
verifyMintExposureAccess
Parameters
Name | Type | Description |
---|---|---|
authedUser | address | The address of user to check access for mint exposure |
updateTreasuryAddress
Admin function to update the Term Finance treasury wallet address
Parameters
Name | Type | Description |
---|---|---|
newTreasuryWallet | address | The new treasury address |
updateProtocolReserveAddress
Admin function to update the Term Finance protocol reserve wallet address
Parameters
Name | Type | Description |
---|---|---|
newProtocolReserveWallet | address | The new protocol reserve wallet address |
updateControllerAdminWallet
Admin function to update the designated controller admin wallet that calls markTermDeployed
Parameters
Name | Type | Description |
---|---|---|
oldControllerAdminWallet | address | The current controller admin wallet to revoke permissions for |
newControllerAdminWallet | address | The new controller admin wallet to grant permissions for |
markTermDeployed
Admin function to add a new Term Finance contract to Controller
Parameters
Name | Type | Description |
---|---|---|
termContract | address | The new term contract address |
unmarkTermDeployed
Admin function to remove a contract from Controller
Parameters
Name | Type | Description |
---|---|---|
termContract | address | The new term contract address |
grantMintExposureAccess
Parameters
Name | Type | Description |
---|---|---|
authedUser | address | The address of user granted access to create mint exposure |
revokeMintExposureAccess
Parameters
Name | Type | Description |
---|---|---|
revokedUser | address | The address of user to revoke access to create mint exposure |
recordAuctionResult
_authorizeUpgrade
required override by the OpenZeppelin UUPS module
Last updated