Maple Finance 백서

Maple Finance

원문

bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 57쪽

Governor can call this function. ```solidity function setDefaultVersion( uint256 version_ ) nonpayable; ``` #### Parameters: | Index | Name | Type | Internal Type | Description | | :---: | :--------: | :-------: | :-----------: | ------------------------------------------------- | | 0 | `version_` | `uint256` | `uint256` | The implementation version to set as the default. | ### `setGlobals` Sets the Maple Globals contract. Only the Governor can call this function. ```solidity function setGlobals( address mapleGlobals_ ) nonpayable; ``` #### Parameters: | Index | Name | Type | Internal Type | Description | | :---: | :-------------: | :-------: | :-----------: | ---------------------------------------- | | 0 | `mapleGlobals_` | `address` | `address` | The address of a Maple Globals contract. | ### `upgradeEnabledForPath` Whether the upgrade is enabled for a path from a version to another version. ```solidity function upgradeEnabledForPath( uint256, uint256 ) view returns ( bool ); ``` #### Parameters: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :-------: | :-----------: | ----------- | | 0 | \`\` | `uint256` | `uint256` | | | 1 | \`\` | `uint256` | `uint256` | | #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :----: | :-----------: | ----------- | | 0 | | `bool` | `bool` | | ### `upgradeInstance` Upgrades the calling proxy contract's implementation, with some migration arguments. ```solidity function upgradeInstance( uint256 toVersion_, bytes arguments_ ) nonpayable; ``` #### Parameters: | Index | Name | Type | Internal Type | Description | | :---: | :----------: | :-------: | :-----------: | ------------------------------------------------------------ | | 0 | `toVersion_` | `uint256` | `uint256` | The implementation version to upgrade the proxy contract to. | | 1 | `arguments_` | `bytes` | `bytes` | The migration arguments, if any. | ### `versionOf` Returns the version of an implementation contract. ```solidity function versionOf( address implementation_ ) view returns ( uint256 version_ ); ``` #### Parameters: | Index | Name | Type | Internal Type | Description | | :---: | :---------------: | :-------: | :-----------: | ------------------------------------------ | | 0 | `implementation_` | `address` | `address` | The address of an implementation contract. | #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--------: | :-------: | :-----------: | ------------------------------------------- | | 0 | `version_` | `uint256` | `uint256` | The version of the implementation contract. | ## Events ### `DefaultVersionSet` A default version was set. ```solidity event DefaultVersionSet( uint256 version_ ); ``` #### Parameters: | Index | Name | Type | Internal Type | Description | | :---: | :--------: | :-------: | :-----------: | -------------------- | | 0 | `version_` | `uint256` | `uint256` | The default version. | ### `ImplementationRegistered` A version of an implementation, at some address, was registered, with an optional initializer. ```solidity event ImplementationRegistered( uint256 version_, address implementationAddress_, address initializer_ ); ``` #### Parameters: | Index | Name | Type | Internal Type | Description | | :---: | :----------------------: | :-------: | :-----------: | --------------------------------------- | | 0 | `version_` | `uint256` | `uint256` | The version registered. | | 1 | `implementationAddress_` | `address` | `address` | The address of the implementation. | | 2 | `initializer_` | `address` | `address` | The address of the initializer, if any. | ### `InstanceDeployed` A proxy contract was deployed with some initialization arguments. ```solidity event InstanceDeployed( uint256 version_, address instance_, bytes initializationArguments_ ); ``` #### Parameters: | Index | Name | Type | Internal Type | Description | | :---: | :------------------------: | :-------: | :-----------: | ------------------------------------------------------------------------------- | | 0 | `version_` | `uint256` | `uint256` | The version of the implementation being proxied by the deployed proxy contract. | | 1 | `instance_` | `address` | `address` | The address of the proxy contract deployed. | | 2 | `initializationArguments_` | `bytes` | `bytes` | The arguments used to initialize the proxy contract, if any. | ### `InstanceUpgraded` A instance has upgraded by proxying to a new implementation, with some migration arguments. ```solidity event InstanceUpgraded( address instance_, uint256 fromVersion_, uint256 toVersion_, bytes migrationArguments_ ); ``` #### Parameters: | Index | Name | Type | Internal Type | Description | | :---: | :-------------------: | :-------: | :-----------: | ------------------------------------------------- | | 0 | `instance_` | `address` | `address` | The address of the proxy contract. | | 1 | `fromVersion_` | `uint256` | `uint256` | The initial implementation version being proxied. | | 2 | `toVersion_` | `uint256` | `uint256` | The new implementation version being proxied. | | 3 | `migrationArguments_` | `bytes` | `bytes` | The arguments used to migrate, if any. | ### `MapleGlobalsSet` The MapleGlobals was set. ```solidity event MapleGlobalsSet( address mapleGlobals_ ); ``` #### Parameters: | Index | Name | Type | Internal Type | Description | | :---: | :-------------: | :-------: | :-----------: | ---------------------------------------- | | 0 | `mapleGlobals_` | `address` | `address` | The address of a Maple Globals contract. | ### `UpgradePathDisabled` An upgrade path was disabled, with an optional migrator contract. ```solidity event UpgradePathDisabled( uint256 fromVersion_, uint256 toVersion_ ); ``` #### Parameters: | Index | Name | Type | Internal Type | Description | | :---: | :------------: | :-------: | :-----------: | -------------------------------------------- | | 0 | `fromVersion_` | `uint256` | `uint256` | The starting version of the upgrade path. | | 1 | `toVersion_` | `uint256` | `uint256` | The destination version of the upgrade path. | ### `UpgradePathEnabled` An upgrade path was enabled, with an optional migrator contract. ```solidity event UpgradePathEnabled( uint256 fromVersion_, uint256 toVersion_, address migrator_ ); ``` #### Parameters: | Index | Name | Type | Internal Type | Description | | :---: | :------------: | :-------: | :-----------: | -------------------------------------------- | | 0 | `fromVersion_` | `uint256` | `uint256` | The starting version of the upgrade path. | | 1 | `toVersion_` | `uint256` | `uint256` | The destination version of the upgrade path. | | 2 | `migrator_` | `address` | `address` | The address of the migrator, if any. | # OpenTermLoanManagerInitializer ## Functions ### `accountedInterest` ```solidity function accountedInterest() view returns ( uint112 ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :-------: | :-----------: | ----------- | | 0 | | `uint112` | `uint112` | | ### `decodeArguments` ```solidity function decodeArguments( bytes calldata_ ) pure returns ( address poolManager_ ); ``` #### Parameters: | Index | Name | Type | Internal Type | Description | | :---: | :---------: | :-----: | :-----------: | ----------- | | 0 | `calldata_` | `bytes` | `bytes` | | #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :------------: | :-------: | :-----------: | ----------- | | 0 | `poolManager_` | `address` | `address` | | ### `domainStart` ```solidity function domainStart() view returns ( uint40 ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :------: | :-----------: | ----------- | | 0 | | `uint40` | `uint40` | | ### `encodeArguments` ```solidity function encodeArguments( address poolManager_ ) pure returns ( bytes calldata_ ); ``` #### Parameters: | Index | Name | Type | Internal Type | Description | | :---: | :------------: | :-------: | :-----------: | ----------- | | 0 | `poolManager_` | `address` | `address` | | #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :---------: | :-----: | :-----------: | ----------- | | 0 | `calldata_` | `bytes` | `bytes` | | ### `fundsAsset` ```solidity function fundsAsset() view returns ( address ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :-------: | :-----------: | ----------- | | 0 | | `address` | `address` | | ### `impairmentFor` ```solidity function impairmentFor( address ) view returns ( uint40 impairedDate, bool impairedByGovernor ); ``` #### Parameters: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :-------: | :-----------: | ----------- | | 0 | \`\` | `address` | `address` | | #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :------------------: | :------: | :-----------: | ----------- | | 0 | `impairedDate` | `uint40` | `uint40` | | | 1 | `impairedByGovernor` | `bool` | `bool` | | ### `issuanceRate` ```solidity function issuanceRate() view returns ( uint256 ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :-------: | :-----------: | ----------- | | 0 | | `uint256` | `uint256` | | ### `paymentFor` ```solidity function paymentFor( address ) view returns ( uint24 platformManagementFeeRate, uint24 delegateManagementFeeRate, uint40 startDate, uint168 issuanceRate ); ``` #### Parameters: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :-------: | :-----------: | ----------- | | 0 | \`\` | `address` | `address` | | #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :-------------------------: | :-------: | :-----------: | ----------- | | 0 | `platformManagementFeeRate` | `uint24` | `uint24` | | | 1 | `delegateManagementFeeRate` | `uint24` | `uint24` | | | 2 | `startDate` | `uint40` | `uint40` | | | 3 | `issuanceRate` | `uint168` | `uint168` | | ### `poolManager` ```solidity function poolManager() view returns ( address ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :-------: | :-----------: | ----------- | | 0 | | `address` | `address` | | ### `principalOut` ```solidity function principalOut() view returns ( uint128 ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :-------: | :-----------: | ----------- | | 0 | | `uint128` | `uint128` | | ### `unrealizedLosses` ```solidity function unrealizedLosses() view returns ( uint128 ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :-------: | :-----------: | ----------- | | 0 | | `uint128` | `uint128` | | ## Events ### `Initialized` ```solidity event Initialized( address poolManager_ ); ``` #### Parameters: | Index | Name | Type | Internal Type | Description | | :---: | :------------: | :-------: | :-----------: | ----------- | | 0 | `poolManager_` | `address` | `address` | | # OpenTermLoanRefinancer ## Functions ### `borrower` ```solidity function borrower() view returns ( address ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :-------: | :-----------: | ----------- | | 0 | | `address` | `address` | | ### `calledPrincipal` ```solidity function calledPrincipal() view returns ( uint256 ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :-------: | :-----------: | ----------- | | 0 | | `uint256` | `uint256` | | ### `dateCalled` ```solidity function dateCalled() view returns ( uint40 ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :------: | :-----------: | ----------- | | 0 | | `uint40` | `uint40` | | ### `dateFunded` ```solidity function dateFunded() view returns ( uint40 ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :------: | :-----------: | ----------- | | 0 | | `uint40` | `uint40` | | ### `dateImpaired` ```solidity function dateImpaired() view returns ( uint40 ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :------: | :-----------: | ----------- | | 0 | | `uint40` | `uint40` | | ### `datePaid` ```solidity 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. ```solidity 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` ```solidity function delegateServiceFeeRate() view returns ( uint64 ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :------: | :-----------: | ----------- | | 0 | | `uint64` | `uint64` | | ### `fundsAsset` ```solidity function fundsAsset() view returns ( address ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :-------: | :-----------: | ----------- | | 0 | | `address` | `address` | | ### `gracePeriod` ```solidity 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. ```solidity 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` ```solidity function interestRate() view returns ( uint64 ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :------: | :-----------: | ----------- | | 0 | | `uint64` | `uint64` | | ### `lateFeeRate` ```solidity function lateFeeRate() view returns ( uint64 ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :------: | :-----------: | ----------- | | 0 | | `uint64` | `uint64` | | ### `lateInterestPremiumRate` ```solidity function lateInterestPremiumRate() view returns ( uint64 ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :------: | :-----------: | ----------- | | 0 | | `uint64` | `uint64` | | ### `lender` ```solidity function lender() view returns ( address ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :-------: | :-----------: | ----------- | | 0 | | `address` | `address` | | ### `noticePeriod` ```solidity function noticePeriod() view returns ( uint32 ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :------: | :-----------: | ----------- | | 0 | | `uint32` | `uint32` | | ### `paymentInterval` ```solidity function paymentInterval() view returns ( uint32 ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :------: | :-----------: | ----------- | | 0 | | `uint32` | `uint32` | | ### `pendingBorrower` ```solidity function pendingBorrower() view returns ( address ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :-------: | :-----------: | ----------- | | 0 | | `address` | `address` | | ### `pendingLender` ```solidity function pendingLender() view returns ( address ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :-------: | :-----------: | ----------- | | 0 | | `address` | `address` | | ### `platformServiceFeeRate` ```solidity function platformServiceFeeRate() view returns ( uint64 ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :------: | :-----------: | ----------- | | 0 | | `uint64` | `uint64` | | ### `principal` ```solidity function principal() view returns ( uint256 ); ``` #### Return Values: | Index | Name | Type | Internal Type | Description | | :---: | :--: | :-------: | :-----------: | ----------- | | 0 | | `uint256` | `uint256` | | ### `refinanceCommitment` ```solidity 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. ```solidity 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. ```solidity 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. ```solidity 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. ```solidity 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. ```solidity 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. ```solidity function setNoticePeriod( uint32 noticePeriod_ ) nonpayable; ``` #### Parameters: | Index | Name | Type | Internal Type | Description | | :---: | :-------------: | :------: | :-----------: | -----------------------
프로젝트로 돌아가기