ITradingRewards¶
Description¶
Source: contracts/interfaces/ITradingRewards.sol
Views¶
getAvailableRewards
¶
Details
Signature
getAvailableRewards() view returns (uint256)
Visibility
external
State Mutability
view
getAvailableRewardsForAccountForPeriod
¶
Details
Signature
getAvailableRewardsForAccountForPeriod(address account, uint256 periodID) view returns (uint256)
Visibility
external
State Mutability
view
getAvailableRewardsForAccountForPeriods
¶
Details
Signature
getAvailableRewardsForAccountForPeriods(address account, uint256[] periodIDs) view returns (uint256 totalRewards)
Visibility
external
State Mutability
view
getCurrentPeriod
¶
Details
Signature
getCurrentPeriod() view returns (uint256)
Visibility
external
State Mutability
view
getPeriodAvailableRewards
¶
Details
Signature
getPeriodAvailableRewards(uint256 periodID) view returns (uint256)
Visibility
external
State Mutability
view
getPeriodController
¶
Details
Signature
getPeriodController() view returns (address)
Visibility
external
State Mutability
view
getPeriodIsClaimable
¶
Details
Signature
getPeriodIsClaimable(uint256 periodID) view returns (bool)
Visibility
external
State Mutability
view
getPeriodIsFinalized
¶
Details
Signature
getPeriodIsFinalized(uint256 periodID) view returns (bool)
Visibility
external
State Mutability
view
getPeriodRecordedFees
¶
Details
Signature
getPeriodRecordedFees(uint256 periodID) view returns (uint256)
Visibility
external
State Mutability
view
getPeriodTotalRewards
¶
Details
Signature
getPeriodTotalRewards(uint256 periodID) view returns (uint256)
Visibility
external
State Mutability
view
getRewardsToken
¶
Details
Signature
getRewardsToken() view returns (address)
Visibility
external
State Mutability
view
getUnaccountedFeesForAccountForPeriod
¶
Details
Signature
getUnaccountedFeesForAccountForPeriod(address account, uint256 periodID) view returns (uint256)
Visibility
external
State Mutability
view
getUnassignedRewards
¶
Details
Signature
getUnassignedRewards() view returns (uint256)
Visibility
external
State Mutability
view
External Functions¶
claimRewardsForPeriod
¶
Details
Signature
claimRewardsForPeriod(uint256 periodID)
Visibility
external
State Mutability
``
claimRewardsForPeriods
¶
Details
Signature
claimRewardsForPeriods(uint256[] periodIDs)
Visibility
external
State Mutability
``
closeCurrentPeriodWithRewards
¶
Details
Signature
closeCurrentPeriodWithRewards(uint256 rewards)
Visibility
external
State Mutability
``
recordExchangeFeeForAccount
¶
Details
Signature
recordExchangeFeeForAccount(uint256 usdFeeAmount, address account)
Visibility
external
State Mutability
``
recoverAssignedRewardTokensAndDestroyPeriod
¶
Details
Signature
recoverAssignedRewardTokensAndDestroyPeriod(address recoverAddress, uint256 periodID)
Visibility
external
State Mutability
``
recoverTokens
¶
Details
Signature
recoverTokens(address tokenAddress, address recoverAddress)
Visibility
external
State Mutability
``
recoverUnassignedRewardTokens
¶
Details
Signature
recoverUnassignedRewardTokens(address recoverAddress)
Visibility
external
State Mutability
``
setPeriodController
¶
Details
Signature
setPeriodController(address newPeriodController)
Visibility
external
State Mutability
``