Skip to content

Latest commit

 

History

History
256 lines (227 loc) · 7.46 KB

VaultBase.md

File metadata and controls

256 lines (227 loc) · 7.46 KB

VaultBase.sol

View Source: contracts/core/liquidity/VaultBase.sol

↗ Extends: ERC20, Recoverable, IVault ↘ Derived Contracts: VaultLiquidity

VaultBase

Contract Members

Constants & Variables

//private members
string private constant _POD_TOKEN_SYMBOL;

//public members
bytes32 public key;
address public sc;

Functions

function (IStore store, bytes32 coverKey, IERC20 stablecoin) internal nonpayable ERC20 Recoverable 

Arguments

Name Type Description
store IStore
coverKey bytes32
stablecoin IERC20
Source Code
constructor(
    IStore store,
    bytes32 coverKey,
    IERC20 stablecoin
  ) ERC20(_getTokenName(coverKey), _POD_TOKEN_SYMBOL) Recoverable(store) {
    key = coverKey;
    sc = address(stablecoin);
  }

_getTokenName

function _getTokenName(bytes32 coverKey) private pure
returns(string)

Arguments

Name Type Description
coverKey bytes32
Source Code
function _getTokenName(bytes32 coverKey) private pure returns (string memory) {
    return string(abi.encodePacked(string(abi.encodePacked(coverKey)), "-ndai"));
  }

delgate

function delgate() public view
returns(contract IVaultDelegate)

Arguments

Name Type Description
Source Code
function delgate() public view returns (IVaultDelegate) {
    address delegate = s.getVaultDelegate();
    return IVaultDelegate(delegate);
  }

Contracts