PrimaryLendingPlatformWrappedTokenGatewayZksync

Overview

License: MIT

contract PrimaryLendingPlatformWrappedTokenGatewayZksync is PrimaryLendingPlatformWrappedTokenGatewayCore

The PrimaryLendingPlatformWrappedTokenGatewayZksync contract is the contract that provides the functionality for lending platform system using WETH for Zksync network.

Contract that provides the functionality for lending platform system using WETH. Inherit from PrimaryLendingPlatformWrappedTokenGatewayCore.

Functions info

withdraw (0x4143d0f6)

function withdraw(
    uint256 projectTokenAmount,
    bytes32[] memory priceIds,
    bytes[] calldata updateData
) public payable nonReentrant

Allows users to withdraw their WETH tokens and receive Ether and update related token's prices.

Parameters:

borrow (0xbeadd4d8)

function borrow(
    address projectToken,
    uint256 lendingTokenAmount,
    bytes32[] memory priceIds,
    bytes[] calldata updateData
) public payable nonReentrant

Borrows lending tokens for the caller and converts them to Ether and update related token's prices.

Parameters:

liquidateWithProjectETH (0x3d82a5ca)

function liquidateWithProjectETH(
    address _account,
    address _lendingToken,
    uint256 _lendingTokenAmount,
    bytes32[] memory priceIds,
    bytes[] calldata updateData
) public payable nonReentrant

Liquidates a position by providing project tokens in Ether and update related token's prices.

Parameters:

liquidateWithLendingETH (0x49b009d4)

function liquidateWithLendingETH(
    address _account,
    address _projectToken,
    uint256 _lendingTokenAmount,
    bytes32[] memory priceIds,
    bytes[] calldata updateData,
    uint256 updateFee
) public payable nonReentrant

Liquidates a position by providing lending tokens in Ether and update related token's prices.

Parameters:

leveragedBorrowWithProjectETH (0xd5790a86)

function leveragedBorrowWithProjectETH(
    address _lendingToken,
    uint256 _notionalExposure,
    uint256 _marginCollateralAmount,
    bytes memory buyCalldata,
    uint8 leverageType,
    bytes32[] memory priceIds,
    bytes[] calldata updateData,
    uint256 updateFee
) public payable nonReentrant

Borrows lending tokens in a leveraged position using project tokens in Ether and update related token's prices.

Parameters:

Last updated