CollateralJoinDelegatableChild

Git Source

Inherits: CollateralJoinChild, ICollateralJoinDelegatableChild

This contract inherits all the functionality of CollateralJoin to be factory deployed and adds a ERC20Votes delegation

For well behaved ERC20Votes tokens with less than 18 decimals

State Variables

delegatee

Address to whom the voting power is delegated

address public delegatee;

Functions

constructor

constructor(
  address _safeEngine,
  bytes32 _cType,
  address _collateral,
  address _delegatee
) CollateralJoinChild(_safeEngine, _cType, _collateral);

Parameters

NameTypeDescription
_safeEngineaddressAddress of the SafeEngine contract
_cTypebytes32Bytes32 representation of the collateral type
_collateraladdressAddress of the ERC20Votes collateral token
_delegateeaddressAddress to whom the voting power is delegated