bitpro가 원문에서 글자만 모은 내용이에요. 표·그림·수식은 빠지거나 깨질 수 있어요. 전체 75쪽 중 58쪽
-------- |
| 0 | `noticePeriod_` | `uint32` | `uint32` | The new value for noticePeriod. |
### `setPaymentInterval`
Function to set the paymentInterval during a refinance. The interval is denominated in seconds.
```solidity
function setPaymentInterval(
uint32 paymentInterval_
)
nonpayable;
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :----------------: | :------: | :-----------: | ---------------------------------- |
| 0 | `paymentInterval_` | `uint32` | `uint32` | The new value for paymentInterval. |
## Events
### `DelegateServiceFeeRateSet`
The value for the service fee rate for the PoolDelegate (1e18 units).
```solidity
event DelegateServiceFeeRateSet(
uint64 delegateServiceFeeRate_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-----------------------: | :------: | :-----------: | ----------------------------------------- |
| 0 | `delegateServiceFeeRate_` | `uint64` | `uint64` | The new value for delegateServiceFeeRate. |
### `GracePeriodSet`
A new value for gracePeriod has been set.
```solidity
event GracePeriodSet(
uint256 gracePeriod_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :------------: | :-------: | :-----------: | ------------------------------ |
| 0 | `gracePeriod_` | `uint256` | `uint256` | The new value for gracePeriod. |
### `InterestRateSet`
A new value for interestRate has been set.
```solidity
event InterestRateSet(
uint64 interestRate_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------------: | :------: | :-----------: | ------------------------------- |
| 0 | `interestRate_` | `uint64` | `uint64` | The new value for interestRate. |
### `LateFeeRateSet`
A new value for lateFeeRate has been set.
```solidity
event LateFeeRateSet(
uint64 lateFeeRate_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :------------: | :------: | :-----------: | ------------------------------ |
| 0 | `lateFeeRate_` | `uint64` | `uint64` | The new value for lateFeeRate. |
### `LateInterestPremiumRateSet`
A new value for lateInterestPremiumRate has been set.
```solidity
event LateInterestPremiumRateSet(
uint64 lateInterestPremiumRate_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :------------------------: | :------: | :-----------: | ------------------------------------------ |
| 0 | `lateInterestPremiumRate_` | `uint64` | `uint64` | The new value for lateInterestPremiumRate. |
### `NoticePeriodSet`
A new value for noticePeriod has been set.
```solidity
event NoticePeriodSet(
uint256 noticePeriod_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------------: | :-------: | :-----------: | -------------------------------- |
| 0 | `noticePeriod_` | `uint256` | `uint256` | The new value for noticedPeriod. |
### `PaymentIntervalSet`
A new value for paymentInterval has been set.
```solidity
event PaymentIntervalSet(
uint256 paymentInterval_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :----------------: | :-------: | :-----------: | ---------------------------------- |
| 0 | `paymentInterval_` | `uint256` | `uint256` | The new value for paymentInterval. |
### `PrincipalDecreased`
The value of the principal has been decreased.
```solidity
event PrincipalDecreased(
uint256 decreasedBy_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :------------: | :-------: | :-----------: | ----------------------------------------------- |
| 0 | `decreasedBy_` | `uint256` | `uint256` | The amount of which the value was decreased by. |
### `PrincipalIncreased`
The value of the principal has been increased.
```solidity
event PrincipalIncreased(
uint256 increasedBy_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :------------: | :-------: | :-----------: | ----------------------------------------------- |
| 0 | `increasedBy_` | `uint256` | `uint256` | The amount of which the value was increased by. |
# Pool
## Constructor
```solidity
constructor(
address manager_,
address asset_,
address destination_,
uint256 bootstrapMint_,
uint256 initialSupply_,
string name_,
string symbol_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------------: | :-------: | :-----------: | ------------------------ |
| 0 | `manager_` | `address` | `address` | |
| 1 | `asset_` | `address` | `address` | |
| 2 | `destination_` | `address` | `address` | |
| 3 | `bootstrapMint_` | `uint256` | `uint256` | |
| 4 | `initialSupply_` | `uint256` | `uint256` | |
| 5 | `name_` | `string` | `string` | The name of the token. |
| 6 | `symbol_` | `string` | `string` | The symbol of the token. |
## Functions
### `BOOTSTRAP_MINT`
The amount of shares that will be burned during the first deposit/mint.
```solidity
function BOOTSTRAP_MINT()
view
returns (
uint256
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | | `uint256` | `uint256` | |
### `DOMAIN_SEPARATOR`
Returns the signature domain separator.
```solidity
function DOMAIN_SEPARATOR()
view
returns (
bytes32 domainSeparator_
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :----------------: | :-------: | :-----------: | ------------------------------- |
| 0 | `domainSeparator_` | `bytes32` | `bytes32` | The signature domain separator. |
### `PERMIT_TYPEHASH`
Returns the permit type hash.
```solidity
function PERMIT_TYPEHASH()
view
returns (
bytes32
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | | `bytes32` | `bytes32` | |
### `allowance`
Returns the allowance that one account has given another over their tokens.
```solidity
function allowance(
address,
address
)
view
returns (
uint256
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | \`\` | `address` | `address` | |
| 1 | \`\` | `address` | `address` | |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | | `uint256` | `uint256` | |
### `approve`
Function that allows one account to set the allowance of another account over their tokens. Emits an {Approval} event.
```solidity
function approve(
address spender_,
uint256 amount_
)
nonpayable
returns (
bool success_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------: | :-------: | :-----------: | ----------------------------------------- |
| 0 | `spender_` | `address` | `address` | Account that tokens are approved for. |
| 1 | `amount_` | `uint256` | `uint256` | Amount of tokens that have been approved. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------: | :----: | :-----------: | --------------------------------------------------- |
| 0 | `success_` | `bool` | `bool` | Boolean indicating whether the operation succeeded. |
### `asset`
The address of the underlying asset used by the Vault. MUST be a contract that implements the ERC-20 standard. MUST NOT revert.
```solidity
function asset()
view
returns (
address
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | | `address` | `address` | |
### `balanceOf`
Returns the amount of tokens owned by a given account.
```solidity
function balanceOf(
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` | |
### `balanceOfAssets`
Returns the amount of underlying assets owned by the specified account.
```solidity
function balanceOfAssets(
address account_
)
view
returns (
uint256 balanceOfAssets_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------: | :-------: | :-----------: | ----------------------- |
| 0 | `account_` | `address` | `address` | Address of the account. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :----------------: | :-------: | :-----------: | ----------------------- |
| 0 | `balanceOfAssets_` | `uint256` | `uint256` | Amount of assets owned. |
### `convertToAssets`
The amount of \`assets\_\` the \`shares\_\` are currently equivalent to. MUST NOT be inclusive of any fees that are charged against assets in the Vault. MUST NOT reflect slippage or other on-chain conditions when performing the actual exchange. MUST NOT show any variations depending on the caller. MUST NOT revert.
```solidity
function convertToAssets(
uint256 shares_
)
view
returns (
uint256 assets_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------: | :-------: | :-----------: | -------------------------------- |
| 0 | `shares_` | `uint256` | `uint256` | The amount of shares to convert. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------: | :-------: | :-----------: | -------------------------------- |
| 0 | `assets_` | `uint256` | `uint256` | The amount of equivalent assets. |
### `convertToExitAssets`
Returns the amount of exit assets for the input amount.
```solidity
function convertToExitAssets(
uint256 shares_
)
view
returns (
uint256 assets_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------: | :-------: | :-----------: | ------------------------------------------ |
| 0 | `shares_` | `uint256` | `uint256` | The amount of shares to convert to assets. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------: | :-------: | :-----------: | ----------------------------------- |
| 0 | `assets_` | `uint256` | `uint256` | Amount of assets able to be exited. |
### `convertToExitShares`
Returns the amount of exit shares for the input amount.
```solidity
function convertToExitShares(
uint256 amount_
)
view
returns (
uint256 shares_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------: | :-------: | :-----------: | ----------- |
| 0 | `amount_` | `uint256` | `uint256` | |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------: | :-------: | :-----------: | ----------------------------------- |
| 0 | `shares_` | `uint256` | `uint256` | Amount of shares able to be exited. |
### `convertToShares`
The amount of \`shares\_\` the \`assets\_\` are currently equivalent to. MUST NOT be inclusive of any fees that are charged against assets in the Vault. MUST NOT reflect slippage or other on-chain conditions when performing the actual exchange. MUST NOT show any variations depending on the caller. MUST NOT revert.
```solidity
function convertToShares(
uint256 assets_
)
view
returns (
uint256 shares_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------: | :-------: | :-----------: | -------------------------------- |
| 0 | `assets_` | `uint256` | `uint256` | The amount of assets to convert. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------: | :-------: | :-----------: | -------------------------------- |
| 0 | `shares_` | `uint256` | `uint256` | The amount of equivalent shares. |
### `decimals`
Returns the decimal precision used by the token.
```solidity
function decimals()
view
returns (
uint8
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-----: | :-----------: | ----------- |
| 0 | | `uint8` | `uint8` | |
### `decreaseAllowance`
Function that allows one account to decrease the allowance of another account over their tokens. Emits an {Approval} event.
```solidity
function decreaseAllowance(
address spender_,
uint256 subtractedAmount_
)
nonpayable
returns (
bool success_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :-----------------: | :-------: | :-----------: | ------------------------------------- |
| 0 | `spender_` | `address` | `address` | Account that tokens are approved for. |
| 1 | `subtractedAmount_` | `uint256` | `uint256` | Amount to decrease approval by. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------: | :----: | :-----------: | --------------------------------------------------- |
| 0 | `success_` | `bool` | `bool` | Boolean indicating whether the operation succeeded. |
### `deposit`
Mints \`shares\_\` to \`receiver\_\` by depositing \`assets\_\` into the Vault. MUST emit the {Deposit} event. MUST revert if all of the assets cannot be deposited (due to insufficient approval, deposit limits, slippage, etc).
```solidity
function deposit(
uint256 assets_,
address receiver_
)
nonpayable
returns (
uint256 shares_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------: | :-------: | :-----------: | -------------------------------- |
| 0 | `assets_` | `uint256` | `uint256` | The amount of assets to deposit. |
| 1 | `receiver_` | `address` | `address` | The receiver of the shares. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------: | :-------: | :-----------: | ---------------------------- |
| 0 | `shares_` | `uint256` | `uint256` | The amount of shares minted. |
### `depositWithPermit`
Does a ERC4626 \`deposit\` with a ERC-2612 \`permit\`.
```solidity
function depositWithPermit(
uint256 assets_,
address receiver_,
uint256 deadline_,
uint8 v_,
bytes32 r_,
bytes32 s_
)
nonpayable
returns (
uint256 shares_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------: | :-------: | :-----------: | ---------------------------------------------------------------------- |
| 0 | `assets_` | `uint256` | `uint256` | The amount of \`asset\` to deposit. |
| 1 | `receiver_` | `address` | `address` | The receiver of the shares. |
| 2 | `deadline_` | `uint256` | `uint256` | The timestamp after which the \`permit\` signature is no longer valid. |
| 3 | `v_` | `uint8` | `uint8` | ECDSA signature v component. |
| 4 | `r_` | `bytes32` | `bytes32` | ECDSA signature r component. |
| 5 | `s_` | `bytes32` | `bytes32` | ECDSA signature s component. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :-------: | :-------: | :-----------: | ---------------------------- |
| 0 | `shares_` | `uint256` | `uint256` | The amount of shares minted. |
### `increaseAllowance`
Function that allows one account to increase the allowance of another account over their tokens. Emits an {Approval} event.
```solidity
function increaseAllowance(
address spender_,
uint256 addedAmount_
)
nonpayable
returns (
bool success_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :------------: | :-------: | :-----------: | ------------------------------------- |
| 0 | `spender_` | `address` | `address` | Account that tokens are approved for. |
| 1 | `addedAmount_` | `uint256` | `uint256` | Amount to increase approval by. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--------: | :----: | :-----------: | --------------------------------------------------- |
| 0 | `success_` | `bool` | `bool` | Boolean indicating whether the operation succeeded. |
### `manager`
The address of the account that is allowed to update the vesting schedule.
```solidity
function manager()
view
returns (
address
);
```
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :--: | :-------: | :-----------: | ----------- |
| 0 | | `address` | `address` | |
### `maxDeposit`
Maximum amount of \`assets\_\` that can be deposited on behalf of the \`receiver\_\` through a \`deposit\` call. MUST return a limited value if the receiver is subject to any limits, or the maximum value otherwise. MUST NOT revert.
```solidity
function maxDeposit(
address receiver_
)
view
returns (
uint256 maxAssets_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------: | :-------: | :-----------: | --------------------------- |
| 0 | `receiver_` | `address` | `address` | The receiver of the assets. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :----------: | :-------: | :-----------: | --------------------------------------------------- |
| 0 | `maxAssets_` | `uint256` | `uint256` | The maximum amount of assets that can be deposited. |
### `maxMint`
Maximum amount of \`shares\_\` that can be minted on behalf of the \`receiver\_\` through a \`mint\` call. MUST return a limited value if the receiver is subject to any limits, or the maximum value otherwise. MUST NOT revert.
```solidity
function maxMint(
address receiver_
)
view
returns (
uint256 maxShares_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :---------: | :-------: | :-----------: | --------------------------- |
| 0 | `receiver_` | `address` | `address` | The receiver of the shares. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :----------: | :-------: | :-----------: | ------------------------------------------------ |
| 0 | `maxShares_` | `uint256` | `uint256` | The maximum amount of shares that can be minted. |
### `maxRedeem`
Maximum amount of \`shares\_\` that can be redeemed from the \`owner\_\` through a \`redeem\` call. MUST return a limited value if the owner is subject to any limits, or the total amount of owned shares otherwise. MUST NOT revert.
```solidity
function maxRedeem(
address owner_
)
view
returns (
uint256 maxShares_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :------: | :-------: | :-----------: | ------------------------ |
| 0 | `owner_` | `address` | `address` | The owner of the shares. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :----------: | :-------: | :-----------: | -------------------------------------------------- |
| 0 | `maxShares_` | `uint256` | `uint256` | The maximum amount of shares that can be redeemed. |
### `maxWithdraw`
Maximum amount of \`assets\_\` that can be withdrawn from the \`owner\_\` through a \`withdraw\` call. MUST return a limited value if the owner is subject to any limits, or the total amount of owned assets otherwise. MUST NOT revert.
```solidity
function maxWithdraw(
address owner_
)
view
returns (
uint256 maxAssets_
);
```
#### Parameters:
| Index | Name | Type | Internal Type | Description |
| :---: | :------: | :-------: | :-----------: | ------------------------ |
| 0 | `owner_` | `address` | `address` | The owner of the assets. |
#### Return Values:
| Index | Name | Type | Internal Type | Description |
| :---: | :----------: | :-------: | :-----------: | --------------------------------------------------- |
| 0 | `maxAssets_` | `uint256` | `uint256` | The maximum amount of assets that can be withdrawn. |프로젝트로 돌아가기