- Using Foundry, it is running 5 differents situations (see below), and store data in a JSON.
- The JSON are then used to generate graph for a better visualisation.
- Graphs are stored in a new generate folder
data/graphs/
yarn run node:base
make test
make graphs
make all
Input parameters:
Share
: Target amount of WETH in the pool between tick -1 and 0, 1e18 is 100%.Amount
: Amount of WETH that will be deposited initially.
What's happening:
- Alice deposit
Amount
of WETH in the Vault and receiveAmount
of OETHb. - Strategy set the
setAllowedPoolWethShareInterval
using ±5% ofShare
. - Vault allocate
WETH
to the AMO. - Strategy rebalance by swapping
WETH
. - Vault
withdrawAll
from AMO.
What's verified:
- That the
(Vault Balance - TotalSupply) / 1e18 > 0
Input parameters:
Share
: Target amount of WETH in the pool between tick -1 and 0, 1e18 is 100%.Amount
: Amount of OETHb that will be buy in the pool.
What's happening:
- Alice deposit
DEFAULT_INITIAL_DEPOSIT
of WETH in the Vault and receiveDEFAULT_INITIAL_DEPOSIT
of OETHb. - Strategy set the
setAllowedPoolWethShareInterval
using ±5% ofShare
. - Vault allocate
WETH
to the AMO. - Strategy rebalance by swapping
WETH
. - Alice swap
Amount
of WETH for OETHb (situation A) or OETHb for WETH (situation B) - Vault
withdrawAll
from AMO.
What's verified:
- That the
(Vault Balance - TotalSupply) / 1e18 > 0
Input parameters:
Share
: Target amount of WETH in the pool between tick -1 and 0, 1e18 is 100%.Amount
: Amount of OETHb that will be provided as liquidity in the pool.Ticks
: Ticks values where liquidity will be deposited
What's happening:
- Alice deposit
DEFAULT_INITIAL_DEPOSIT
of WETH in the Vault and receiveDEFAULT_INITIAL_DEPOSIT
of OETHb. - Strategy set the
setAllowedPoolWethShareInterval
using ±5% ofShare
. - Vault allocate
WETH
to the AMO. - Strategy rebalance by swapping
WETH
. - Alice provide
amount
of liquidity betweenticks
andticks + 1
(situation A) or-ticks - 1
and-ticks
(situation B) - Vault
withdrawAll
from AMO.
What's verified:
- That the
(Vault Balance - TotalSupply) / 1e18 > 0
- Removed.
Input parameters:
Share
: Target amount of WETH in the pool between tick -1 and 0, 1e18 is 100%.Amount
: Amount of OETHb that will be provided as liquidity in the pool.Ticks
: Ticks values where liquidity will be deposited
What's happening:
- Alice deposit
DEFAULT_INITIAL_DEPOSIT
of WETH in the Vault and receiveDEFAULT_INITIAL_DEPOSIT
of OETHb. - Strategy set the
setAllowedPoolWethShareInterval
using ±5% ofShare
. - Vault allocate
WETH
to the AMO. - Strategy rebalance by swapping
WETH
. - Alice provide
DEFAULT_INITIAL_DEPOSIT
of liquidity between-ticks
and-ticks - 1
(situation A) orticks + 1
and-ticks
(situation B) - Alice swap
amount
ofWETH
forOETHb
(situation A), ofOETHb
forWETH
(situation B). - Strategy rebalance by swapping
OETHb
(situation A),WETH
(situation B). - Vault
withdrawAll
from AMO.
What's verified:
- That the
(Vault Balance - TotalSupply) / 1e18 > 0
Input parameters:
Share
: Target amount of WETH in the pool between tick -1 and 0, 1e18 is 100%.Amount
: Amount of OETHb that will be provided as liquidity in the pool.Ticks
: Ticks values where liquidity will be deposited
What's happening:
- Alice deposit
DEFAULT_INITIAL_DEPOSIT
of WETH in the Vault and receiveDEFAULT_INITIAL_DEPOSIT
of OETHb. - Strategy set the
setAllowedPoolWethShareInterval
using ±5% ofShare
. - Vault allocate
WETH
to the AMO. - Strategy rebalance by swapping
WETH
. - Alice provide
DEFAULT_INITIAL_DEPOSIT
of liquidity between-ticks
and-ticks - 1
- Alice swap
DEFAULT_INITIAL_DEPOSIT
ofWETH
forOETHb
. - Alice provide
amount
of liquidity between ticks -1 and 0. - Strategy rebalance by swapping
OETHb
. - Vault
withdrawAll
from AMO.
What's verified:
- That the
(Vault Balance - TotalSupply) / 1e18 > 0