Skip to content

Latest commit

 

History

History
238 lines (214 loc) · 7.5 KB

VaultBase.md

File metadata and controls

238 lines (214 loc) · 7.5 KB

Vault Base Contract (VaultBase.sol)

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

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

VaultBase

Contract Members

Constants & Variables

bytes32 public key;
address public sc;

Functions

Constructs this contract

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

Arguments

Name Type Description
store IStore Provide store instance
coverKey bytes32 Provide a cover key that doesn't have a vault deployed
tokenName string Enter the token name of the POD. Example: Uniswap nDAI or Uniswap nUSDC
tokenSymbol string Enter the token symbol of the POD. Example: UNI-NDAI or UNI-NUSDC.
stablecoin IERC20 Provide an instance of the stablecoin this vault supports.
Source Code
constructor(
    IStore store,
    bytes32 coverKey,
    string memory tokenName,
    string memory tokenSymbol,
    IERC20 stablecoin
  ) ERC20(tokenName, tokenSymbol) Recoverable(store) {
    key = coverKey;
    sc = address(stablecoin);
  }

delegate

Returns the delegate contract instance

function delegate() public view
returns(contract IVaultDelegate)

Arguments

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

Contracts