Skip to content

Latest commit

 

History

History
239 lines (215 loc) · 7.5 KB

VaultBase.md

File metadata and controls

239 lines (215 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

Contructs 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);
  }

delgate

Returns the delegate contract instance

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