ZivoeRouter.sol
Interfaces with ZivoeVault
Last updated
Interfaces with ZivoeVault
Last updated
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
IERC20
zSTT
The zSTT token address
IERC20
ZVE
The ZVE token address
IZivoeTranches
ZVT
The ZivoeTranches contract address
IZivoeVault
VLT
The ZivoeVault contract address
depositVault()
Allows a user to deposit USDC (or any approved stablecoin), mint zSTT, deposit into ZivoeVault, and receive vault tokens.
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.
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.