Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Method] Balancer #9

Open
AdamB2023 opened this issue Feb 2, 2023 · 4 comments
Open

[Method] Balancer #9

AdamB2023 opened this issue Feb 2, 2023 · 4 comments

Comments

@AdamB2023
Copy link

This TX isn't handled and require implementation
https://etherscan.io/tx/0x61a6dd3c0d7f1234b2818689a84f949976f5f1a32a01cbeadbc76d5543a0001c

@tsarbuig
Copy link
Owner

tsarbuig commented Feb 3, 2023

this is not a swap... what is that ? are you sure liquidity is in Uniswap ?

@AdamB2023
Copy link
Author

AdamB2023 commented Feb 4, 2023

Balancer is different protocol than Uniswap, especially regarding price mechanism.
It's commonly used for brand-new tokens.
https://dev.balancer.fi/resources/swaps/single-swap#function-and-struct-definitions

It seems like we have everything needed:

  1. token address
  2. ETH amount
  3. min received amount
    1 & 3 - can be same, and % scale like UNI is currently handled
# | Name | Type | Data
-- | -- | -- | --
0 | singleSwap.poolId | bytes32 | 0xfd46caabe412a5c64bc64cb7b2a781e2fe50f9c0000200000000000000000447
0 | singleSwap.kind | uint8 | 0
0 | singleSwap.assetIn | address | 0x0000000000000000000000000000000000000000
0 | singleSwap.assetOut | address | 0x6BC08509B36A98E829dFfAD49Fde5e412645d0a3
0 | singleSwap.amount | uint256 | 50000000000000000
0 | singleSwap.userData | bytes | 0x
1 | funds.sender | address | 0x1b73E83b498b68cC3B6b5AeE265322e29DFCb524
1 | funds.fromInternalBalance | bool | false
1 | funds.recipient | address | 0x1b73E83b498b68cC3B6b5AeE265322e29DFCb524
1 | funds.toInternalBalance | bool | false
3 | limit | uint256 | 241951535996261397981013
4 | deadline | uint256 | 115792089237316195423570985008687907853269984665640564039457584007913129639935

@tsarbuig
Copy link
Owner

tsarbuig commented Feb 5, 2023

yeah I've seen this, but the question is : is liquidity present on Uniswap V2 or V3 ?

@AdamB2023
Copy link
Author

It's not using Uniswap LP, it has own LP, so implementation would require handling new router.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants