PoolPermissionManager
\
Functions
admin
admin
Returns the proxy's admin address.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the admin. |
\
configurePool
configurePool
Configures the permissions of a pool.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| |
1 |
|
|
| |
2 |
|
|
| |
3 |
|
|
|
\
globals
globals
Returns the address of the `MapleGlobals` contract.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
hasPermission
hasPermission
Checks if the lender has permission to interact with a pool. The function identifier defines the function to check the permission for.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| |
1 |
|
|
| |
2 |
|
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
hasPermission
hasPermission
Checks if the lender has permission to interact with a pool. The function identifier defines the function to check the permission for.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| |
1 |
|
|
| |
2 |
|
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
|
\
implementation
implementation
Returns the proxy's implementation address.
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| The address of the implementation. |
\
lenderAllowlist
lenderAllowlist
Checks if a pool has allowlisted a lender.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
| |
1 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
lenderBitmaps
lenderBitmaps
Returns the permission bitmap of a lender.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
permissionAdmins
permissionAdmins
Checks if the account is a permission admin.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
permissionLevels
permissionLevels
Returns the permission level of a pool. Permission levels: private (0), function-level (1), pool-level (2), public (3)
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
poolBitmaps
poolBitmaps
Returns a function-specific pool permission bitmap. Return the pool-level permission bitmap if the function identifier is zero.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 | `` |
|
| |
1 | `` |
|
|
Return Values:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
\
setLenderAllowlist
setLenderAllowlist
Sets the allowlist status of one or more lenders.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| |
1 |
|
|
| |
2 |
|
|
|
\
setLenderBitmaps
setLenderBitmaps
Sets the permission bitmaps of one or more lenders.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| |
1 |
|
|
|
\
setPermissionAdmin
setPermissionAdmin
Sets the permission admin status of an account.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| |
1 |
|
|
|
\
setPoolBitmaps
setPoolBitmaps
Sets the permission bitmaps of a pool.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| |
1 |
|
|
| |
2 |
|
|
|
\
setPoolPermissionLevel
setPoolPermissionLevel
Sets the permission level of a pool. Permission levels: private (0), function-level (1), pool-level (2), public (3) NOTE: Bitmaps must be set before setting the permission level to function-level (1) or pool-level (2). Otherwise, the pool will be permissionless by default to un-set lenders.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| |
1 |
|
|
|
\
Events
LenderAllowlistSet
LenderAllowlistSet
Emitted when the lender allowlist is updated.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Address of the pool manager. |
1 |
|
|
| List of lender addresses to set the allowlist for. |
2 |
|
|
| List of boolean values. |
\
LenderBitmapsSet
LenderBitmapsSet
Emitted when lender bitmaps are updated.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| List of lender addresses to set the bitmaps for. |
1 |
|
|
| List of permission bitmaps. |
\
PermissionAdminSet
PermissionAdminSet
Emitted when a permission admin has been updated.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Address of the updated account. |
1 |
|
|
| `true` if the account is a permission admin, `false` if not. |
\
PoolBitmapsSet
PoolBitmapsSet
Emitted when pool bitmaps are updated.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Address of the pool manager. |
1 |
|
|
| List of function identifiers to set the bitmaps for. |
2 |
|
|
| List of permission bitmaps. |
\
PoolPermissionLevelSet
PoolPermissionLevelSet
Emitted when the permission level of a pool is updated.
Parameters:
Index | Name | Type | Internal Type | Description |
---|---|---|---|---|
0 |
|
|
| Address of the pool manager. |
1 |
|
|
| Pool permission level. |
\
Last updated