ity
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. |
# FixedTermLoanManagerInitializer
## Functions
### `accountedInterest`
```solidity
function accountedInterest()
view
returns (
uint112
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | | `uint112` | `uint112` | |
### `allowedSlippageFor`
```solidity
function allowedSlippageFor(
address
)
view
returns (
uint256
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | \`\` | `address` | `address` | |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | | `uint256` | `uint256` | |
### `decodeArguments`
Decodes the initialization arguments of a loan manager.
```solidity
function decodeArguments(
bytes calldata_
)
pure
returns (
address poolManager_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------: | :-----: | :-----------: | ---------------------------------------- |
| 0 | `calldata_` | `bytes` | `bytes` | ABI encoded address of the pool manager. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :------------: | :-------: | :-----------: | ---------------------------- |
| 0 | `poolManager_` | `address` | `address` | Address of the pool manager. |
### `domainEnd`
```solidity
function domainEnd()
view
returns (
uint48
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :------: | :-----------: | ----------- |
| 0 | | `uint48` | `uint48` | |
### `domainStart`
```solidity
function domainStart()
view
returns (
uint48
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :------: | :-----------: | ----------- |
| 0 | | `uint48` | `uint48` | |
### `encodeArguments`
Encodes the initialization arguments of a loan manager.
```solidity
function encodeArguments(
address poolManager_
)
pure
returns (
bytes calldata_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :------------: | :-------: | :-----------: | ---------------------------- |
| 0 | `poolManager_` | `address` | `address` | Address of the pool manager. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------: | :-----: | :-----------: | ---------------------------------------- |
| 0 | `calldata_` | `bytes` | `bytes` | ABI encoded address of the pool manager. |
### `fundsAsset`
```solidity
function fundsAsset()
view
returns (
address
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | | `address` | `address` | |
### `issuanceRate`
```solidity
function issuanceRate()
view
returns (
uint256
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | | `uint256` | `uint256` | |
### `liquidationInfo`
```solidity
function liquidationInfo(
address
)
view
returns (
bool triggeredByGovernor,
uint128 principal,
uint120 interest,
uint256 lateInterest,
uint96 platformFees,
address liquidator
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | \`\` | `address` | `address` | |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------------------: | :-------: | :-----------: | ----------- |
| 0 | `triggeredByGovernor` | `bool` | `bool` | |
| 1 | `principal` | `uint128` | `uint128` | |
| 2 | `interest` | `uint120` | `uint120` | |
| 3 | `lateInterest` | `uint256` | `uint256` | |
| 4 | `platformFees` | `uint96` | `uint96` | |
| 5 | `liquidator` | `address` | `address` | |
### `minRatioFor`
```solidity
function minRatioFor(
address
)
view
returns (
uint256
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | \`\` | `address` | `address` | |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | | `uint256` | `uint256` | |
### `paymentCounter`
```solidity
function paymentCounter()
view
returns (
uint24
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :------: | :-----------: | ----------- |
| 0 | | `uint24` | `uint24` | |
### `paymentIdOf`
```solidity
function paymentIdOf(
address
)
view
returns (
uint24
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | \`\` | `address` | `address` | |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :------: | :-----------: | ----------- |
| 0 | | `uint24` | `uint24` | |
### `payments`
```solidity
function payments(
uint256
)
view
returns (
uint24 platformManagementFeeRate,
uint24 delegateManagementFeeRate,
uint48 startDate,
uint48 paymentDueDate,
uint128 incomingNetInterest,
uint128 refinanceInterest,
uint256 issuanceRate
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | \`\` | `uint256` | `uint256` | |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------------------------: | :-------: | :-----------: | ----------- |
| 0 | `platformManagementFeeRate` | `uint24` | `uint24` | |
| 1 | `delegateManagementFeeRate` | `uint24` | `uint24` | |
| 2 | `startDate` | `uint48` | `uint48` | |
| 3 | `paymentDueDate` | `uint48` | `uint48` | |
| 4 | `incomingNetInterest` | `uint128` | `uint128` | |
| 5 | `refinanceInterest` | `uint128` | `uint128` | |
| 6 | `issuanceRate` | `uint256` | `uint256` | |
### `paymentWithEarliestDueDate`
```solidity
function paymentWithEarliestDueDate()
view
returns (
uint24
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :------: | :-----------: | ----------- |
| 0 | | `uint24` | `uint24` | |
### `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` | |
### `sortedPayments`
```solidity
function sortedPayments(
uint256
)
view
returns (
uint24 previous,
uint24 next,
uint48 paymentDueDate
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | \`\` | `uint256` | `uint256` | |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------------: | :------: | :-----------: | ----------- |
| 0 | `previous` | `uint24` | `uint24` | |
| 1 | `next` | `uint24` | `uint24` | |
| 2 | `paymentDueDate` | `uint48` | `uint48` | |
### `unrealizedLosses`
```solidity
function unrealizedLosses()
view
returns (
uint128
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | | `uint128` | `uint128` | |
## Events
### `Initialized`
Emitted when the loan manager is initialized.
```solidity
event Initialized(
address poolManager_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :------------: | :-------: | :-----------: | --------------------------------------- |
| 0 | `poolManager_` | `address` | `address` | Address of the associated pool manager. |
# FixedTermLoanRefinancer
# Globals Interface: Technical Reference
## Functions
### `HUNDRED_PERCENT`
```solidity
function HUNDRED_PERCENT()
view
returns (
uint256
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | | `uint256` | `uint256` | |
### `acceptGovernor`
Accepts the governorship if the caller is the \`pendingGovernor\`.
```solidity
function acceptGovernor()
nonpayable;
```
### `activatePoolManager`
Activates the pool manager.
```solidity
function activatePoolManager(
address poolManager_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :------------: | :-------: | :-----------: | -------------------------------------------- |
| 0 | `poolManager_` | `address` | `address` | The address of the pool manager to activate. |
### `admin`
Returns the proxy's admin address.
```solidity
function admin()
view
returns (
address admin_
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :------: | :-------: | :-----------: | ------------------------- |
| 0 | `admin_` | `address` | `address` | The address of the admin. |
### `bootstrapMint`
Gets the virtualized first mint that acts as as offset to \`totalAssets\` and \`totalSupply\` for a given pool asset.
```solidity
function bootstrapMint(
address
)
view
returns (
uint256
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | \`\` | `address` | `address` | |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | | `uint256` | `uint256` | |
### `canDeploy`
Gets whether a caller account can deploy from the factory calling this function.
```solidity
function canDeploy(
address caller_
)
view
returns (
bool canDeploy_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------: | :-------: | :-----------: | ----------------------------------------------- |
| 0 | `caller_` | `address` | `address` | The address of the account calling the factory. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :----------: | :----: | :-----------: | ------------------------------------------------ |
| 0 | `canDeploy_` | `bool` | `bool` | Whether the account can deploy from the factory. |
### `canDeployFrom`
Gets whether a caller account can deploy from a factory.
```solidity
function canDeployFrom(
address factory_,
address caller_
)
view
returns (
bool canDeployFrom_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------: | :-------: | :-----------: | ----------------------------------------------- |
| 0 | `factory_` | `address` | `address` | The address of the factory. |
| 1 | `caller_` | `address` | `address` | The address of the account calling the factory. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------------: | :----: | :-----------: | ------------------------------------------------ |
| 0 | `canDeployFrom_` | `bool` | `bool` | Whether the account can deploy from the factory. |
### `defaultTimelockParameters`
Gets the default timelock parameters.
```solidity
function defaultTimelockParameters()
view
returns (
uint128 delay,
uint128 duration
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------: | :-------: | :-----------: | ------------------------------ |
| 0 | `delay` | `uint128` | `uint128` | The default timelock delay. |
| 1 | `duration` | `uint128` | `uint128` | The default timelock duration. |
### `getLatestPrice`
Gets the latest price for an asset.
```solidity
function getLatestPrice(
address asset_
)
view
returns (
uint256 latestPrice_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :------: | :-------: | :-----------: | ---------------------------------- |
| 0 | `asset_` | `address` | `address` | The address of the asset to query. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :------------: | :-------: | :-----------: | ------------------------------- |
| 0 | `latestPrice_` | `uint256` | `uint256` | The latest price for the asset. |
### `governor`
Gets governor address.
```solidity
function governor()
view
returns (
address governor_
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------: | :-------: | :-----------: | ---------------------------- |
| 0 | `governor_` | `address` | `address` | The address of the governor. |
### `implementation`
Returns the proxy's implementation address.
```solidity
function implementation()
view
returns (
address implementation_
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------------: | :-------: | :-----------: | ---------------------------------- |
| 0 | `implementation_` | `address` | `address` | The address of the implementation. |
### `isBorrower`
Gets the validity of a borrower.
```solidity
function isBorrower(
address
)
view
returns (
bool
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Descri프로젝트로 돌아가기