LogoLogo
User DocsDeveloper DocsHow-To Guides
  • ➡️Start Here
  • 🚧Disclaimer
  • User Docs
    • Introduction
    • Fund Overview
    • zVLT
    • Tranches
    • ZVE Token
  • How-To Guides
    • Complete KYC/KYB
    • Mint Tranche Tokens
    • Stake Tranche Tokens
  • Developer Docs
    • Contract Addresses
    • Core Contracts
      • ZivoeDAO.sol
      • ZivoeGlobals.sol
      • ZivoeGovernorV2.sol
      • ZivoeITO.sol
      • ZivoeLocker.sol
      • ZivoeMath.sol
      • ZivoeRewards.sol
      • ZivoeRewardsVesting.sol
      • ZivoeToken.sol
      • ZivoeTranches.sol
      • ZivoeTrancheToken.sol
      • ZivoeYDL.sol
      • ZivoeVault.sol
      • ZivoeRouter.sol
    • Lockers
      • OCC_Modular.sol
      • OCE_ZVE.sol
      • OCL_ZVE.sol
      • OCR_Modular.sol
      • OCT_DAO.sol
      • OCT_Convert.sol
      • OCT_YDL.sol
      • OCT_ZVL.sol
      • OCY_Convex_A.sol
      • OCY_Convex_B.sol
      • OCY_Convex_C.sol
      • OCY_OUSD.sol
      • ZivoeSwapper.sol
  • Official Links
    • Audits
    • Website
    • Twitter
    • Telegram
    • Blog
  • Terms
    • Terms Of Use / Privacy Policy
    • Reg S Compliance
Powered by GitBook

Zivoe Finance - Official Documentation

On this page
  • Introduction
  • Write Functions
  1. Developer Docs
  2. Core Contracts

ZivoeRouter.sol

Interfaces with ZivoeVault

PreviousZivoeVault.solNextLockers

Last updated 10 days ago

Introduction

This contract facilitates batched transactions for deposits and withdrawals to ZivoeVault.

This contract has the following features:

  • Allows users to mint zVLT tokens by depositing stablecoins

  • Allows users to deposit using the permit function for gas efficiency

State Variables

Type
Name
Description

IERC20

zSTT

The zSTT token address

IERC20

ZVE

The ZVE token address

IZivoeTranches

ZVT

The ZivoeTranches contract address

IZivoeVault

VLT

The ZivoeVault contract address

Write Functions

depositVault()

Allows a user to deposit USDC (or any approved stablecoin), mint zSTT, deposit into ZivoeVault, and receive vault tokens.

function depositVault(
    address stablecoin, 
    uint256 amount
) external nonReentrant;
Type
Name
Description

adress

stablecoin

The stablecoin to deposit.

uint256

amount

The amount of stableocin to deposit.

depositWithPermit()

Allows a user to deposit USDC (or any approved stablecoin) using a permit, mint zSTT, deposit into ZivoeVault, and receive vault tokens.

function depositWithPermit(
    address owner, 
    address stablecoin, 
    uint256 amount, 
    uint256 deadline, 
    uint8 v, 
    bytes32 r, 
    bytes32 s
) external nonReentrant;
Type
Name
Description

address

owner

The owner of the assets to be deposited.

address

stablecoin

The stablecoin to deposit.

uint256

amount

The amount of stablecoin to deposit.

uint256

deadline

The permit signature expiration time.

uint8

v

The recovery byte of the permit signature.

bytes32

r

The first 32 bytes of the permit signature.

bytes32

s

The second 32 bytes of the permit signature.