Evoq
Entrypoint of the Evoq Protocol built on top of Venus Protocol.
Functions
supply
Creates a supply position for the sender. msg.sender
must have approved Evoq's contract to spend the underlying _amount
.
Parameters:
_poolToken
address
The address of the market the user wants to interact with.
_amount
uint256
The amount of token (in underlying) to supply.
supply on behalf
Creates a supply position for a given user, spending sender tokens. msg.sender
must have approved Evoq's contract to spend the underlying _amount
.
Parameters:
_poolToken
address
The address of the market the user wants to interact with.
_onBehalf
address
The address of the account whose positions will be updated.
_amount
uint256
The amount of token (in underlying) to supply.
supply on behalf with matching management
Creates a supply position for a given user, spending sender tokens, and controlling the gas consumed for matching. msg.sender
must have approved Evoq's contract to spend the underlying _amount
.
Parameters:
_poolToken
address
The address of the market the user wants to interact with.
_onBehalf
address
The address of the account whose positions will be updated.
_amount
uint256
The amount of token (in underlying) to supply.
_maxGasForMatching
uint256
The gas threshold at which to stop the matching engine.
borrow
Borrows underlying tokens from a specific market.
Parameters:
_poolToken
address
The address of the market the user wants to interact with.
_amount
uint256
The amount of token (in underlying) to borrow.
borrow with borrower and receiver
Borrows underlying tokens from a specific market and set borrwer and receiver.
Parameters:
_poolToken
address
The address of the market the user wants to interact with.
_amount
uint256
The amount of token (in underlying) to borrow.
_borrower
address
The address of the borrower in debt.
_receiver
address
The address of the receiver of the borrowed asset.
borrow with matching management
Borrows underlying tokens from a specific market, by controlling the gas consumed for matching.
Parameters:
_poolToken
address
The address of the market the user wants to interact with.
_amount
uint256
The amount of token (in underlying) to borrow.
_borrower
address
The address of the borrower in debt.
_receiver
address
The address of the receiver of the borrowed asset.
_maxGasForMatching
uint256
The gas threshold at which to stop the matching engine.
withdraw
Withdraws underlying tokens from a specific market.
Parameters:
_poolToken
address
The address of the market the user wants to interact with.
_amount
uint256
The amount of token (in underlying) to withdraw.
withdraw to a specific user
Withdraws underlying tokens from a specific market to a given user.
Parameters:
_poolToken
address
The address of the market the user wants to interact with.
_amount
uint256
The amount of token (in underlying) to withdraw.
_supplier
address
The address that supplied the tokens.
_receiver
address
The address to send withdrawn tokens to.
repay
Repays underlying tokens from a specific market.
msg.sender
must have approved Evoq's contract to spend the underlying _amount
.
Parameters:
_poolToken
address
The address of the market the user wants to interact with.
_amount
uint256
The amount of token (in underlying) to repay from borrow.
repay on behalf
Repays underlying tokens from a specific market to a given user.
Parameters:
_poolToken
address
The address of the market the user wants to interact with.
_onBehalf
address
The address of the account whose positions will be updated.
_amount
uint256
The amount of token (in underlying) to repay from borrow.
liquidate
Liquidates a position.
Parameters:
_poolTokenBorrowed
address
The address of the pool token the liquidator wants to repay.
_poolTokenCollateral
address
The address of the collateral pool token the liquidator wants to seize.
_borrower
address
The address of the borrower to liquidate.
_amount
uint256
The amount of token (in underlying) to repay.
claimRewards
Claims rewards from the underlying pool.
This function is specific to Evoq.
Parameters:
_vTokenAddresses
address[]
The addresses of the vTokens to claim rewards from.
Return values:
amountOfRewards
uint256
The amount of rewards claimed (in XVS for Venus).
Last updated