bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 49쪽
ion |
| :---: | :---------------------------: | :-------: | :-----------: | --------------------------------------------------------------------------------- |
| 0 | `poolManager_` | `address` | `address` | The address of the pool manager to set the maximum cover liquidation percent for. |
| 1 | `maxCoverLiquidationPercent_` | `uint256` | `uint256` | The maximum cover liquidation percent. |
### `setMigrationAdmin`
Sets the address of the migration admin.
```solidity
function setMigrationAdmin(
address migrationAdmin_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------------: | :-------: | :-----------: | ----------------------------------- |
| 0 | `migrationAdmin_` | `address` | `address` | The address of the migration admin. |
### `setMinCoverAmount`
Sets the minimum cover amount for the given pool manager.
```solidity
function setMinCoverAmount(
address poolManager_,
uint256 minCoverAmount_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------------: | :-------: | :-----------: | -------------------------------------------------------------------- |
| 0 | `poolManager_` | `address` | `address` | The address of the pool manager to set the minimum cover amount for. |
| 1 | `minCoverAmount_` | `uint256` | `uint256` | The minimum cover amount. |
### `setOperationalAdmin`
Sets the address of the operational admin.
```solidity
function setOperationalAdmin(
address operationalAdmin_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-----------------: | :-------: | :-----------: | ------------------------------------- |
| 0 | `operationalAdmin_` | `address` | `address` | The address of the operational admin. |
### `setPendingGovernor`
Sets the pending governor.
```solidity
function setPendingGovernor(
address pendingGovernor_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :----------------: | :-------: | :-----------: | ------------------------- |
| 0 | `pendingGovernor_` | `address` | `address` | The new pending governor. |
### `setPlatformManagementFeeRate`
Sets the platform management fee rate for the given pool manager.
```solidity
function setPlatformManagementFeeRate(
address poolManager_,
uint256 platformManagementFeeRate_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------------------------: | :-------: | :-----------: | --------------------------------------------------- |
| 0 | `poolManager_` | `address` | `address` | The address of the pool manager to set the fee for. |
| 1 | `platformManagementFeeRate_` | `uint256` | `uint256` | The platform management fee rate. |
### `setPlatformOriginationFeeRate`
Sets the platform origination fee rate for the given pool manager.
```solidity
function setPlatformOriginationFeeRate(
address poolManager_,
uint256 platformOriginationFeeRate_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------------------------: | :-------: | :-----------: | --------------------------------------------------- |
| 0 | `poolManager_` | `address` | `address` | The address of the pool manager to set the fee for. |
| 1 | `platformOriginationFeeRate_` | `uint256` | `uint256` | The platform origination fee rate. |
### `setPlatformServiceFeeRate`
Sets the platform service fee rate for the given pool manager.
```solidity
function setPlatformServiceFeeRate(
address poolManager_,
uint256 platformServiceFeeRate_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-----------------------: | :-------: | :-----------: | --------------------------------------------------- |
| 0 | `poolManager_` | `address` | `address` | The address of the pool manager to set the fee for. |
| 1 | `platformServiceFeeRate_` | `uint256` | `uint256` | The platform service fee rate. |
### `setPriceOracle`
Sets the price oracle for the given asset.
```solidity
function setPriceOracle(
address asset_,
address oracle_,
uint96 maxDelay_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------: | :-------: | :-----------: | ----------------------------------------------- |
| 0 | `asset_` | `address` | `address` | The address of the asset to set the oracle for. |
| 1 | `oracle_` | `address` | `address` | The address of the oracle to set for the asset. |
| 2 | `maxDelay_` | `uint96` | `uint96` | Maximum delay set to check for stale price. |
### `setProtocolPause`
Sets the protocol pause.
```solidity
function setProtocolPause(
bool protocolPaused_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------------: | :----: | :-----------: | ------------------------------------------------------ |
| 0 | `protocolPaused_` | `bool` | `bool` | A boolean indicating the status of the protocol pause. |
### `setSecurityAdmin`
Sets the address of the security admin.
```solidity
function setSecurityAdmin(
address securityAdmin_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------------: | :-------: | :-----------: | ---------------------------------- |
| 0 | `securityAdmin_` | `address` | `address` | The address of the security admin. |
### `setTimelockWindow`
Sets the timelock for the given contract.
```solidity
function setTimelockWindow(
address contract_,
bytes32 functionId_,
uint128 delay_,
uint128 duration_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-----------: | :-------: | :-----------: | ------------------------------------- |
| 0 | `contract_` | `address` | `address` | The address of the contract to add. |
| 1 | `functionId_` | `bytes32` | `bytes32` | The id of the function. |
| 2 | `delay_` | `uint128` | `uint128` | The delay for the timelock window. |
| 3 | `duration_` | `uint128` | `uint128` | The duration for the timelock window. |
### `setTimelockWindows`
Sets the timelock for the many function ids in a contract.
```solidity
function setTimelockWindows(
address contract_,
bytes32[] functionIds_,
uint128[] delays_,
uint128[] durations_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :------------: | :---------: | :-----------: | -------------------------------------- |
| 0 | `contract_` | `address` | `address` | The address of the contract to add. |
| 1 | `functionIds_` | `bytes32[]` | `bytes32[]` | The ids of the functions. |
| 2 | `delays_` | `uint128[]` | `uint128[]` | The delays for the timelock window. |
| 3 | `durations_` | `uint128[]` | `uint128[]` | The durations for the timelock window. |
### `setValidBorrower`
Sets the validity of the borrower.
```solidity
function setValidBorrower(
address borrower_,
bool isValid_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------: | :-------: | :-----------: | ---------------------------------------------------- |
| 0 | `borrower_` | `address` | `address` | The address of the borrower to set the validity for. |
| 1 | `isValid_` | `bool` | `bool` | A boolean indicating the validity of the borrower. |
### `setValidCollateralAsset`
Sets the validity of a collateral asset.
```solidity
function setValidCollateralAsset(
address collateralAsset_,
bool isValid_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :----------------: | :-------: | :-----------: | ------------------------------------------------------------ |
| 0 | `collateralAsset_` | `address` | `address` | The address of the collateral asset to set the validity for. |
| 1 | `isValid_` | `bool` | `bool` | A boolean indicating the validity of the collateral asset. |
### `setValidInstanceOf`
Sets the validity of the instance.
```solidity
function setValidInstanceOf(
bytes32 instanceKey_,
address instance_,
bool isValid_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :------------: | :-------: | :-----------: | ---------------------------------------------------- |
| 0 | `instanceKey_` | `bytes32` | `bytes32` | The key of the instance to set the validity for. |
| 1 | `instance_` | `address` | `address` | The address of the instance to set the validity for. |
| 2 | `isValid_` | `bool` | `bool` | Boolean indicating the validity of the instance. |
### `setValidPoolAsset`
Sets the validity of the pool asset.
```solidity
function setValidPoolAsset(
address poolAsset_,
bool isValid_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :----------: | :-------: | :-----------: | ------------------------------------------------------ |
| 0 | `poolAsset_` | `address` | `address` | The address of the pool asset to set the validity for. |
| 1 | `isValid_` | `bool` | `bool` | A boolean indicating the validity of the pool asset. |
### `setValidPoolDelegate`
Sets the validity of the pool delegate.
```solidity
function setValidPoolDelegate(
address account_,
bool isValid_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------: | :-------: | :-----------: | ------------------------------------------------------- |
| 0 | `account_` | `address` | `address` | |
| 1 | `isValid_` | `bool` | `bool` | A boolean indicating the validity of the pool delegate. |
### `setValidPoolDeployer`
Sets the validity of the pool deployer.
```solidity
function setValidPoolDeployer(
address account_,
bool isPoolDeployer_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------------: | :-------: | :-----------: | --------------------------------------------------------- |
| 0 | `account_` | `address` | `address` | The address of the pool deployer to set the validity for. |
| 1 | `isPoolDeployer_` | `bool` | `bool` | A boolean indicating the validity of the pool deployer. |
### `timelockParametersOf`
Gets the time lock parameters for a given contract and function.
```solidity
function timelockParametersOf(
address,
bytes32
)
view
returns (
uint128 delay,
uint128 duration
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | \`\` | `address` | `address` | |
| 1 | \`\` | `bytes32` | `bytes32` | |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------: | :-------: | :-----------: | ----------------------- |
| 0 | `delay` | `uint128` | `uint128` | The time lock delay. |
| 1 | `duration` | `uint128` | `uint128` | The time lock duration. |
### `transferOwnedPoolManager`
Transfer the ownership of the pool manager.
```solidity
function transferOwnedPoolManager(
address fromPoolDelegate_,
address toPoolDelegate_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-----------------: | :-------: | :-----------: | ------------------------------------------------------------ |
| 0 | `fromPoolDelegate_` | `address` | `address` | The address of the pool delegate to transfer ownership from. |
| 1 | `toPoolDelegate_` | `address` | `address` | The address of the pool delegate to transfer ownership to. |
### `unscheduleCall`
Unschedules a call to be executed.
```solidity
function unscheduleCall(
address caller_,
address contract_,
bytes32 functionId_,
bytes callData_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-----------: | :-------: | :-----------: | ---------------------------------------------- |
| 0 | `caller_` | `address` | `address` | The contract to execute the call on. |
| 1 | `contract_` | `address` | `address` | The contract to execute the call on. |
| 2 | `functionId_` | `bytes32` | `bytes32` | The id of the function to execute. |
| 3 | `callData_` | `bytes` | `bytes` | The of the parameters to pass to the function. |
### `unscheduleCall`
Unschedules a call to be executed.
```solidity
function unscheduleCall(
address caller_,
bytes32 functionId_,
bytes callData_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-----------: | :-------: | :-----------: | ---------------------------------------------- |
| 0 | `caller_` | `address` | `address` | The contract to execute the call on. |
| 1 | `functionId_` | `bytes32` | `bytes32` | The id of the function to execute. |
| 2 | `callData_` | `bytes` | `bytes` | The of the parameters to pass to the function. |
## Events
### `BootstrapMintSet`
A virtualized first mint that acts as as offset to \`totalAssets\` and \`totalSupply\`.
```solidity
event BootstrapMintSet(
address asset_,
uint256 bootstrapMint_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------------: | :-------: | :-----------: | -------------------------------------------------------------------------- |
| 0 | `asset_` | `address` | `address` | The address of the pool asset. |
| 1 | `bootstrapMint_` | `uint256` | `uint256` | The amount of shares that will offset \`totalAssets\` and \`totalSupply\`. |
### `CallScheduled`
A time locked call has been scheduled.
```solidity
event CallScheduled(
address caller_,
address contract_,
bytes32 functionId_,
bytes32 dataHash_,
uint256 timestamp_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-----------: | :-------: | :-----------: | --------------------------------------------------- |
| 0 | `caller_` | `address` | `address` | The address of the function caller. |
| 1 | `contract_` | `address` | `address` | The contract to execute the call on. |
| 2 | `functionId_` | `bytes32` | `bytes32` | The id of the function to execute. |
| 3 | `dataHash_` | `bytes32` | `bytes32` | The hash of the parameters to pass to the function. |
| 4 | `timestamp_` | `uint256` | `uint256` | The timestamp of the schedule. |
### `CallUnscheduled`
A time locked call has been unscheduled.
```solidity
event CallUnscheduled(
address caller_,
address contract_,
bytes32 functionId_,
bytes32 dataHash_,
uint256 timestamp_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-----------: | :-------: | :-----------: | --------------------------------------------------- |
| 0 | `caller_` | `address` | `address` | The address of the function caller. |
| 1 | `contract_` | `address` | `address` | The contract to execute the call on. |
| 2 | `functionId_` | `bytes32` | `bytes32` | The id of the function to execute. |
| 3 | `dataHash_` | `bytes32` | `bytes32` | The hash of the parameters to pass to the function. |
| 4 | `timestamp_` | `uint256` | `uint256` | The timestamp of the schedule. |
### `CanDeployFromSet`
An account has been allowed/disallowed from deploying an instance from a particular factory.
```solidity
event CanDeployFromSet(
address factory_,
address account_,
bool canDeployFrom_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------------: | :-------: | :-----------: | ------------------------------------------------ |
| 0 | `factory_` | `address` | `address` | The address of the factory. |
| 1 | `account_` | `address` | `address` | The address of the account. |
| 2 | `canDeployFrom_` | `bool` | `bool` | Whether the account can deploy from the factory. |
### `ContractPauseSet`
The paused state for a given protocol contract was set.
```solidity
event ContractPauseSet(
address caller_,
address contract_,
bool contractPaused_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------------: | :-------: | :-----------: | ------------------------------------------------------------------------ |
| 0 | `caller_` | `address` | `address` | The address of the security admin or governor that performed the action. |
| 1 | `contract_` | `address` | `address` | The address of a contract in the protocol. |
| 2 | `contractPaused_` | `bool` | `bool` | Whether the contract is uniquely paused. |
### `DefaultTimelockParametersSet`
The default parameters for the time lock has been set.
```solidity
event DefaultTimelockParametersSet(
uint256 previousDelay_,
uint256 currentDelay_,
uint256 previousDuration_,
uint256 currentDuration_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-----------------: | :-------: | :-----------: | -------------------------------- |
| 0 | `previousDelay_` | `uint256` | `uint256` | The previous required delay. |
| 1 | `currentDelay_` | `uint256` | `uint256` | The newly set required delay. |
| 2 | `previousDuration_` | `uint256` | `uint256` | The previous required duration. |
| 3 | `currentDuration_` | `uint256` | `uint256` | The newly set required duration. |
### `FunctionUnpauseSet`
The paused state for a function of a given protocol contract was set.
```solidity
event FunctionUnpauseSet(
address caller_,
address contract_,
bytes4 sig_,
bool functionUnpaused_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-----------------: | :-------: | :-----------: | ------------------------------------------------------------------------ |
| 0 | `caller_` | `address` | `address` | The address of the security admin or governor that performed the action. |
| 1 | `contract_` | `address` | `address` | The address of a contract in the protocol. |
| 2 | `sig_` | `bytes4` | `bytes4` | The function signature within the contract. |
| 3 | `functionUnpaused_` | `bool` | `bool` | Whether the contract's function is uniquely unpaused. |
### `GovernorshipAccepted`
The governorship has been accepted.
```solidity
event GovernorshipAccepted(
address previousGovernor_,
address currentGovernor_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-----------------: | :-------: | :-----------: | ---------------------- |
| 0 | `previousGovernor_` | `address` | `address` | The previous governor. |
| 1 | `currentGovernor_` | `address` | `address` | The new governor. |
### `ManualOverridePriceSet`
The price for an asset has been set.
```solidity
event ManualOverridePriceSet(
address asset_,
uint256 price_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :------: | :-------: | :-----------: | ------------------------------------ |
| 0 | `asset_` | `address` | `address` | The address of the asset. |
| 1 | `price_` | `uint256` | `uint256` | The manually set price of the asset. |
### `MapleTreasurySet`
The address for the Maple treasury has been set.
```solidity
event MapleTreasurySet(
address previousMapleTreasury_,
address currentMapleTreasury_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :----------------------: | :-------: | :-----------: | ---------------------- |
| 0 | `previousMapleTreasury_` | `address` | `address` | The previous treasury. |
| 1 | `currentMapleTreasury_` | `address` | `address` | The new treasury. |
### `MaxCoverLiquidationPercentSet`
The max liquidation percent for the given pool manager has been set.
```solidity
event MaxCoverLiquidationPercentSet(
address poolManager_,
uint256 maxCoverLiquidationPercent_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------------------------: | :-------: | :-----------: | ------------------------------------------------ |
| 0 | `poolManager_` | `addr프로젝트로 돌아가기