IRewardsManager
Source: https://github.com/tangle-network/tnt-core/blob/main/src/interfaces/IRewardsManager.sol
IRewardsManager
Interface for reward vault management - called by MultiAssetDelegation
Functions
recordDelegate
function recordDelegate(address delegator, address operator, address asset, uint256 amount, uint16 lockMultiplierBps) externalRecords a delegation for reward tracking
Parameters
| Name | Type | Description |
|---|---|---|
| delegator | address | The account making the delegation |
| operator | address | The operator being delegated to |
| asset | address | The asset being delegated (address(0) for native) |
| amount | uint256 | The amount being delegated |
| lockMultiplierBps | uint16 | Lock multiplier in basis points (10000 = 1x, 0 = no lock) |
recordUndelegate
function recordUndelegate(address delegator, address operator, address asset, uint256 amount) externalRecords an undelegation
Parameters
| Name | Type | Description |
|---|---|---|
| delegator | address | The account making the undelegation |
| operator | address | The operator being undelegated from |
| asset | address | The asset being undelegated |
| amount | uint256 | The amount being undelegated |
recordServiceReward
function recordServiceReward(address operator, address asset, uint256 amount) externalRecords a service reward for an operator
Parameters
| Name | Type | Description |
|---|---|---|
| operator | address | The operator receiving the reward |
| asset | address | The reward asset |
| amount | uint256 | The reward amount |
getAssetDepositCapRemaining
function getAssetDepositCapRemaining(address asset) external view returns (uint256 remaining)Get remaining deposit capacity for an asset vault
Parameters
| Name | Type | Description |
|---|---|---|
| asset | address | The asset to query |
Return Values
| Name | Type | Description |
|---|---|---|
| remaining | uint256 | The remaining deposit capacity |