Alkemi Earn Contracts
Earn App
Earn API
Search…
Alkemi Earn Contracts
docs
EIP20NonStandardInterface (EIP20NonStandardInterface.sol)
EIP20Interface.sol
RewardControlStorage.sol
TestTokens.sol
Careful Math (CarefulMath.sol)
RewardControlInterface.sol
AggregatorV3Interface.sol
PriceOracleProxy.sol
RewardControl.sol
Migrations.sol
SafeToken.sol
AlkemiWETH.sol
Exponential module for storing fixed-precision decimals (ExponentialNoError.sol)
AlkemiEarnPublic.sol
ErrorReporter.sol
AlkemiEarnVerified.sol
Earn Interest Rate Model (AlkemiRateModel.sol)
PriceOracle.sol
ExchangeRateModel.sol
Exponential.sol
LiquidationChecker.sol
InterestRateModel Interface (InterestRateModel.sol)
SafeMath.sol
ChainLink.sol
PriceOracleInterface.sol
Liquidator.sol
.solidoc
scripts
Powered By
GitBook
RewardControlInterface.sol
View Source:
contracts/RewardControlInterface.sol
​
↘ Derived Contracts:
RewardControl
​
Functions
refreshAlkSupplyIndex(address market, address supplier, bool isVerified)
refreshAlkBorrowIndex(address market, address borrower, bool isVerified)
claimAlk(address holder)
claimAlk(address holder, address market, bool isVerified)
refreshAlkSupplyIndex
⤿ Overridden Implementation(s):
RewardControl.refreshAlkSupplyIndex
​
Refresh ALK supply index for the specified market and supplier
1
function
refreshAlkSupplyIndex
(
address market
,
address supplier
,
bool isVerified
)
external nonpayable
Copied!
Arguments
Name
Type
Description
market
address
The market whose supply index to update
supplier
address
The address of the supplier to distribute ALK to
isVerified
bool
Verified / Public protocol
refreshAlkBorrowIndex
⤿ Overridden Implementation(s):
RewardControl.refreshAlkBorrowIndex
​
Refresh ALK borrow index for the specified market and borrower
1
function
refreshAlkBorrowIndex
(
address market
,
address borrower
,
bool isVerified
)
external nonpayable
Copied!
Arguments
Name
Type
Description
market
address
The market whose borrow index to update
borrower
address
The address of the borrower to distribute ALK to
isVerified
bool
Verified / Public protocol
claimAlk
⤿ Overridden Implementation(s):
RewardControl.claimAlk
​
Claim all the ALK accrued by holder in all markets
1
function
claimAlk
(
address holder
)
external nonpayable
Copied!
Arguments
Name
Type
Description
holder
address
The address to claim ALK for
claimAlk
⤿ Overridden Implementation(s):
RewardControl.claimAlk
​
Claim all the ALK accrued by holder by refreshing the indexes on the specified market only
1
function
claimAlk
(
address holder
,
address market
,
bool isVerified
)
external nonpayable
Copied!
Arguments
Name
Type
Description
holder
address
The address to claim ALK for
market
address
The address of the market to refresh the indexes for
isVerified
bool
Verified / Public protocol
Previous
Careful Math (CarefulMath.sol)
Next
AggregatorV3Interface.sol
Last modified
9mo ago
Copy link
Contents
Functions