Fortress
Search…
Claim Fortress FTS
Every Fortress user accrues FTS for each block in which they are supplying to or borrowing from the protocol. The protocol automatically transfers accrued FTS to a users address when the total amount of FTS accrued that address (in a market) is greater than the claimFortressThreshold, and and the address executes any of the mint, borrow, transfer, liquidateBorrow, repayBorrow, or redeem functions on that market.
Separately, users may call the claimFortress method on any fToken contract at any time for finer grain control over which markets to claim from.

Unitroller

1
// Claim all the FTS accrued by holder in all markets
2
function claimFortress(address holder) public
3
4
// Claim all the FTS accrued by holder in specific markets
5
function claimFortress(address holder, fToken[] memory fTokens) public
6
7
// Claim all the FTS accrued by specific holders in specific markets for their supplies and/or borrows
8
function claimFortress(address[] memory holders, fToken[] memory fTokens, bool borrowers, bool suppliers) public
Copied!
  • RETURN: The liquidationIncentive, scaled by 1e18, is multiplied by the closed borrow amount from the liquidator to determine how much collateral can be seized.

Solidity

1
Unitroller troll = Unitroller(0xABCD...);
2
troll.claimFortress(0x1234...);
Copied!

Web3 1.0

1
const unitroller = new web3.eth.Contract(unitrollerAbi, unitrollerAddress);
2
await unitroller.methods.claimFortress("0x1234...").send({ from: sender });
Copied!
Last modified 9mo ago