Delegate By Signature

Delegate votes from the signatory to the delegatee. This method has the same purpose as Delegate but it instead enables offline signatures to participate in Fortress governance vote delegation.

FTS

function delegateBySig(address delegatee, uint nonce, uint expiry, uint8 v, bytes32 r, bytes32 s)
  • delegatee: The address in which the sender wishes to delegate their votes to.

  • nonce: The contract state required to match the signature. This can be retrieved from the contract’s public nonces mapping.

  • expiry: The time at which to expire the signature. A block timestamp as seconds since the unix epoch (uint).

  • v: The recovery byte of the signature.

  • r: Half of the ECDSA signature pair.

  • s: Half of the ECDSA signature pair.

  • RETURN: No return, reverts on error.

Solidity

FTS fts = FTS(0x123...); // contract address
fts.delegateBySig(delegateeAddress, nonce, expiry, v, r, s);

Web3 1.2.6

const tx = await fts.methods.delegateBySig(delegateeAddress, nonce, expiry, v, r, s).send({});

Last updated