Strike Docs
Search…
Claim STRK
Every Strike user accrues STRK for each block they are supplying to or borrowing from the protocol. Users may call the Comptroller's claimStrike method at any time to transfer STRK accrued to their address.
Comptroller
1
// Claim all the STRK accrued by holder in all markets
2
function claimStrike(address holder) public
3
4
// Claim all the STRK accrued by holder in specific markets
5
function claimStrike(address holder, SToken[] memory sTokens) public
6
7
// Claim all the STRK accrued by specific holders in specific markets for their supplies and/or borrows
8
function claimStrike(address[] memory holders, SToken[] memory sTokens, bool borrowers, bool suppliers) public
Copied!
Solidity
1
Comptroller troll = Comptroller(0xABCD...);
2
troll.claimStrike(0x1234...);
Copied!
Web3 1.2.6
1
const comptroller = new web3.eth.Contract(comptrollerAbi, comptrollerAddress);
2
await comptroller.methods.claimStrike("0x1234...").send({ from: sender });
Copied!
Last modified 8mo ago
Copy link