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