You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
200 USDC => 200 USDT
200 USDT => 1 SOL
1 SOL => 5000 Coin
Perform as expected.
input 200 USDC
output 5000 Coin
Example 2
200 USDT => 1 SOL
300 USDT => 1.5 SOL
expect
input 500 USDT
output 2.5 SOL
actual
input 200 USDT
output 1.5 SOL
When handling []SwapData in ProcessSwapData, can it be divided into inputs and outputs?
Would collecting all inputs and outputs, then removing duplicates, achieve the desired result?
Example 1
Input. [ 200 USDC 200 USDT 1 SOL ]
Ouput [ 200 USDT 1 SOL 5000 Coin]
Example 1
200 USDC => 200 USDT
200 USDT => 1 SOL
1 SOL => 5000 Coin
Perform as expected.
input 200 USDC
output 5000 Coin
Example 2
200 USDT => 1 SOL
300 USDT => 1.5 SOL
expect
input 500 USDT
output 2.5 SOL
actual
input 200 USDT
output 1.5 SOL
When handling []SwapData in ProcessSwapData, can it be divided into inputs and outputs?
Would collecting all inputs and outputs, then removing duplicates, achieve the desired result?
Example 1
Input. [ 200 USDC 200 USDT 1 SOL ]
Ouput [ 200 USDT 1 SOL 5000 Coin]
removing duplicates
input 200 USDC
output 5000 Coin
Example 2
Input. [ 200 USDT 300 USDT ]
Ouput [ 1 SOL 1.5 SOL]
removing duplicates
input 500 USDT
output 2.5 SOL
The text was updated successfully, but these errors were encountered: