8 Commits

Author SHA1 Message Date
mrBovo
fc0fb1e540 BalancerV3: SwapAdapter and Substreams (#126)
* feat: add balancer swapAdapter and Substreams

* fix: undo tycho-substreams logs, ignore abi on rustmft

* ci: prevent warnings from failing CI

* ci: skip size check on CI

* chore: forge fmt

* feat: vault balance from storage

Vault contract tokenBalance message are set according to the vault
storage changes in the `_reserveOf` storage variable VaultStorage.sol
contract
This was the culprit that caused the failure in simulation since
balancer enforces the invariant that `token.balanceOf(vault_addr) == _reservesOf[token]`

* ci: warnings

* fix: avoid duplicated balance changes

* fix: order by ordinal

* chore: format

* feat: extract new contracts before extracting balance changes

* feat: skip unnecessary steps if no balance change is found

* refactor: filter out account balances for tokens that aren't part of any protocol components.

On the indexer side, when we receive an account balance, we need to know about the token. This commit ensure that the token was introduced before we emit any account balance with it.

* refactor: don't index liquidity buffers.

Liquidity buffers rely on rate providers. Therefore we need DCI (feature to be able to index previously created contract) to deal with them.

* refactor: cleanup tests and add docstrings

* chore: lock tycho-substreams version

* ci: set Foundry workflow to use stable foundry

* feat(DCI): Add DCI Entrypoints to BalancerV3 components (#218)

* refactor: fix typo in weighted_pool_factory_contract name

* feat: add rate_providers static attributes

* feat: add DCI entrypoints to BalancerV3 components

* fix: set default trade price to Fraction(0, 1)

* feat: remove buffers as components

Buffers are to be used internally by Boosted pools (stable/weighted pools that use ERC4626 tokens). They are not to be treated as a separate swap component.

* test: update test blocks

Extend tests some tests block range to ensure liquidity was added to the pool and can be simulated on

* feat: remove buffers as components

Remove balance updates for buffer components

* feat: listen for pool pause/unpause events

* chore: formating

* fix: encoding call data

* test: update Balancer V3 tests to use DCI

* test: set indexer log level to info

* docs: add comment on support of boosted pools

* feat: update balancer v3 package version

---------

Co-authored-by: Thales <thales@datarevenue.com>
Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
Co-authored-by: Louise Poole <louise@datarevenue.com>
Co-authored-by: Louise Poole <louisecarmenpoole@gmail.com>
2025-06-26 12:19:39 +02:00
Zizou
64ca72cfa9 feat(balancer): add missing weighted factories (#103)
* feat(balancer): add weigthed pool factory v1

* feat(balancer): add weigthed pool factory v2 and v3

* fix(evm): fix compilation bug due to a bugged solc version

---------

Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
2024-10-31 11:24:10 +00:00
zizou
d3cfc5d509 fix(evm-compilation): enable via IR
This is needed to compile Curve executor.
2024-10-07 10:32:44 +02:00
pistomat
316d1ffdb1 Reformat and remove redundant @dev notices 2023-12-01 10:31:16 +01:00
pistomat
6c4b65c39c Revert "Reformat and remove redundant @dev notices"
This reverts commit a141703520.
2023-12-01 10:30:56 +01:00
pistomat
a141703520 Reformat and remove redundant @dev notices 2023-11-29 12:55:56 +01:00
kayibal
19671bfff4 Add scripts to build runtime code 2023-11-02 10:47:07 +00:00
kayibal
82c815fdf2 Restructure repository file structure.
Adds an outer layer to hold docs, cairo contracts
and other related files.
2023-11-01 01:09:17 +00:00