GitHub Codearrow-up-right
Entrypoint of the Evoq Protocol built on top of Venus Protocol.
Copy function supply(
address _poolToken,
uint256 _amount
) external; Creates a supply position for the sender. msg.sender must have approved Evoq's contract to spend the underlying _amount.
Parameters: arrow-up-right
The address of the market the user wants to interact with.
The amount of token (in underlying) to supply.
Copy function supply(
address _poolToken,
address _onBehalf,
uint256 _amount
) external; 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: arrow-up-right
The address of the market the user wants to interact with.
The address of the account whose positions will be updated.
The amount of token (in underlying) to supply.
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: arrow-up-right
The address of the market the user wants to interact with.
The address of the account whose positions will be updated.
The amount of token (in underlying) to supply.
The gas threshold at which to stop the matching engine.
Borrows underlying tokens from a specific market.
Parameters: arrow-up-right
The address of the market the user wants to interact with.
The amount of token (in underlying) to borrow.
Borrows underlying tokens from a specific market and set borrwer and receiver.
Parameters: arrow-up-right
The address of the market the user wants to interact with.
The amount of token (in underlying) to borrow.
The address of the borrower in debt.
The address of the receiver of the borrowed asset.
Borrows underlying tokens from a specific market, by controlling the gas consumed for matching.
Parameters: arrow-up-right
The address of the market the user wants to interact with.
The amount of token (in underlying) to borrow.
The address of the borrower in debt.
The address of the receiver of the borrowed asset.
The gas threshold at which to stop the matching engine.
Withdraws underlying tokens from a specific market.
Parameters: arrow-up-right
The address of the market the user wants to interact with.
The amount of token (in underlying) to withdraw.
Withdraws underlying tokens from a specific market to a given user.
Parameters: arrow-up-right
The address of the market the user wants to interact with.
The amount of token (in underlying) to withdraw.
The address that supplied the tokens.
The address to send withdrawn tokens to.
Repays underlying tokens from a specific market.
msg.sender must have approved Evoq's contract to spend the underlying _amount.
Parameters: arrow-up-right
The address of the market the user wants to interact with.
The amount of token (in underlying) to repay from borrow.
Repays underlying tokens from a specific market to a given user.
Parameters: arrow-up-right
The address of the market the user wants to interact with.
The address of the account whose positions will be updated.
The amount of token (in underlying) to repay from borrow.
Liquidates a position.
Parameters: arrow-up-right
The address of the pool token the liquidator wants to repay.
The address of the collateral pool token the liquidator wants to seize.
The address of the borrower to liquidate.
The amount of token (in underlying) to repay.
Claims rewards from the underlying pool.
This function is specific to Evoq.
Parameters: arrow-up-right
The addresses of the vTokens to claim rewards from.
Return values: arrow-up-right
The amount of rewards claimed (in XVS for Venus).