depositbase
(deposit WBTC), withdrawbase
(withdraw WBTC),depositquote
(deposit USDC), withdrawquote
(withdraw USDC). isBaseToken
is true
, it's a WBTC token; Otherwise, it's a USDC token.depositbase
: gather all the Deposit logs from WBTC-USDC pair (0x2109F78b4) and also make sure the 3rd parameter isBaseToken
($this.params.2.value) is true
. The logic is demonstrated in the below screenshot.depositbase_amt
, withdrawbase_amt
, depositquote_amt
, withdrawquote_amt
. Here is an example of depositbase_amt
depositbase
(based on the previous step, this is an array that contains all the Deposit logs whose 3rd parameter isBaseToken
is true
) and sum up the value of the 4th parameter amount
($this.params.3.value). This basically gives you the total amount of base token deposit in one transaction. withdrawbase_amt
, depositquote_amt
, withdrawquote_amt
: