FakeOZL

Designed to act as a dummy contract in Goerli, simulating OZLFacet, in order to test the proficiency of the bridging mechanism (L1 -> L2).

Its methods don't simulate the trades from ETH to the Account token nor OZL allocation due to the fact that Curve doesn't have testnet contracts.

So instead of receiving the Account's stablecoin in L2, you'd receive ETH.

circle-info

Github repo herearrow-up-right.

Open methods

getAccountPayments

function getAccountPayments(address account_) external view returns(uint);

Gets the total amount of ETH sent to a specific Account.

It's the testnet equivalent of getAccountPayments() in ozLoupeFacet.

Parameters:

Name
Type
Description

account_

address

Account to query

Return values:

Type
Description

uint256

Total ETH transfers made

getDetails

function getDetails() public view returns(address, address, uint16);

Gets the details of the last Account that interacted with the contract.

Return values:

Type
Description

address

Owner of the Account

address

Token of the Account

uint16

Slippage of the Account (in basis points)

Owner methods

changeFakeOZLVars

Changes the dummy variables used to test the connections of the main contract in L2 (FakeOZL for Arbitrum-Goerli and ozDiamond for Arbitrum One) with the front-end.

Parameters:

Struct:

Name
Type
Description

totalVolumeInUSD

uint256

Dummy value

totalVolumeInETH

uint256

^

wethUM

uint256

^

valueUM

uint256

^

ozlBalance

uint256

^

wethUserShare

uint256

^

usdUserShare

uint256

^

Last updated