Returns an Ethers.js transaction object of the vote transaction.
Create a delegate signature for Fortress Governance using EIP-712. The
signature can be created without burning gas. Anyone can post it to the
blockchain using the delegateBySig method, which does have gas costs.
The address to delegate the user's voting rights to.
Returns an object that contains the v, r, and s
components of an Ethereum signature as hexadecimal strings.
Create a transaction to delegate Fortress Governance voting rights to an address.
The address in which to delegate voting rights to.
Returns an Ethers.js transaction object of the vote transaction.
Delegate voting rights in Fortress Governance using an EIP-712 signature.
The address to delegate the user's voting rights to.
The contract state required to match the signature. This can be retrieved from the FORTRESS contract's public nonces mapping.
The time at which to expire the signature. A block timestamp as seconds since the unix epoch.
An object that contains the v, r, and, s values of an EIP-712 signature.
Returns an Ethers.js transaction object of the vote transaction.
Get the faiController.
Returns a string of the faiController address.
Get the faiMintRate.
Returns a string of the numeric faiMintRate.
Get the FAI mint rate.
Returns a string of the numeric FAI mint rate.
Get the amount of FORTRESS tokens accrued but not yet claimed by an address.
The address in which to find the FORTRESS accrued.
Returns a string of the numeric accruement of FORTRESS. The value is scaled up by 18 decimal places.
Get the balance of FORTRESS tokens held by an address.
The address in which to find the FORTRESS balance.
Returns a string of the numeric balance of FORTRESS. The value is scaled up by 18 decimal places.
Get the mintable FAI amount of address.
The address in which to get mintable FAI amount.
Returns a string of the numeric amount of mintable FAI. The value is scaled up by 18 decimal places.
Mint FAI in the Fortress Protocol.
A string, number, or BigNumber
object of the amount of an asset to mintFAI. Use the mantissa boolean in
the options parameter to indicate if this value is scaled up (so there
are no decimals) or in its natural scale.
Returns an Ethers.js transaction object of the mintFAI transaction.
Get the mintFAIGuardianPaused.
Returns a string of the boolean mintFAIGuardianPaused.
Get the minted FAI amount of the address.
The address in which to get the minted FAI amount.
Returns a string of the numeric amount of minted FAI. The value is scaled up by 18 decimal places.
Get the minted FAI amount of the address.
The address in which to get the minted FAI amount.
Returns a string of the numeric amount of minted FAI. The value is scaled up by 18 decimal places.
Repay FAI in the Fortress Protocol.
A string, number, or BigNumber
object of the amount of an asset to repay. Use the mantissa boolean in
the options parameter to indicate if this value is scaled up (so there
are no decimals) or in its natural scale.
Returns an Ethers.js transaction object of the repayFAI transaction.
Get the repayFAIGuardianPaused.
Returns a string of the boolean repayFAIGuardianPaused.
Applies the EIP-55 checksum to an Ethereum address.
The Ethereum address to apply the checksum.
Returns a string of the Ethereum address.
Create a transaction to claim accrued FORTRESS tokens for the user.
const fortress = new Fortress(window.ethereum); (async function() { console.log('Claiming Fortress...'); const trx = await fortress.claimFortress(); console.log('Ethers.js transaction object', trx); })().catch(console.error);