BuildapireferencegeneratedIRewardsManager

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) external

Records a delegation for reward tracking

Parameters
NameTypeDescription
delegatoraddressThe account making the delegation
operatoraddressThe operator being delegated to
assetaddressThe asset being delegated (address(0) for native)
amountuint256The amount being delegated
lockMultiplierBpsuint16Lock multiplier in basis points (10000 = 1x, 0 = no lock)

recordUndelegate

function recordUndelegate(address delegator, address operator, address asset, uint256 amount) external

Records an undelegation

Parameters
NameTypeDescription
delegatoraddressThe account making the undelegation
operatoraddressThe operator being undelegated from
assetaddressThe asset being undelegated
amountuint256The amount being undelegated

recordServiceReward

function recordServiceReward(address operator, address asset, uint256 amount) external

Records a service reward for an operator

Parameters
NameTypeDescription
operatoraddressThe operator receiving the reward
assetaddressThe reward asset
amountuint256The reward amount

getAssetDepositCapRemaining

function getAssetDepositCapRemaining(address asset) external view returns (uint256 remaining)

Get remaining deposit capacity for an asset vault

Parameters
NameTypeDescription
assetaddressThe asset to query
Return Values
NameTypeDescription
remaininguint256The remaining deposit capacity