Whereas having PAXG as a collateral introduces a crazy amount of dynamics being that it's a real world asset and we can all agree that in current circumstances it's the most stable asset among the supported ones, i.e "ETH, WBTC, ARB, LINK and PAXG"
The only reason for this report, is cause this asset's functionality is massively downplayed on the Arbitrum network, what I mean to say is functionalities that are however readily available on the mainnet for PAXG are not available on the Arbitrum L2
To delve into this, take a look at SmartVaultV3.sol#L214-L231
As seen, this function is essentially used to swap any tokenIn
for any tokenOut
case is if either of these tokens is PAXG
the whole attempt to swap would revert, this is cause unlike the mainnet where there are pools readily available to make a quote and swap for PAXG, this is not available on the Arbitrum L2, below are two pictures demoing an attempt to these swaps via
However for the Arbitrum L2 no quotes are available:
To dive a bit deeper into this, from here we can that using the ETH
has 3 different pool against USDC
, with the two most optimal() being with a fee other than protcols currently hardcoded value of 0.3%
, note that this is even a pair of two popular tokens, same case can be made for the WBTC/ETH pair, where it's best pool with ~23 mln TVL
is the pool with an attached fee of 0.05%
and the pool with a 0.3%
also existing but having a TVL of 14% in comparison to the latter now if these are the massive differences for popular tokens the pair of the popular ETH
and any other
There are multiple cases to be made from this, only one has been stated above which is the fact that executeERC20SwapAndFee()
would never work for PAXG
note that even underlying protocol's implemented swapping function has some hardcoded functionalities to it and even if a pool gets added for PAXG
in the future on Arbitrum it might not be with protocol's expected fee
As hinted by the title of the report, if possible reconsider accepting PAXG
as an asset, since support for it is not as available as other assets
The contest is live. Earn rewards by submitting a finding.
This is your time to appeal against judgements on your submissions.
Appeals are being carefully reviewed by our judges.