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

BIP-459: Enable New Tetubal Gauge #579

Merged
merged 4 commits into from Oct 25, 2023
Merged

Conversation

gosuto-inzasheru
Copy link
Member

payload for https://forum.balancer.fi/t/bip-xxx-enable-tetubal-20weth-80bal-gauge-polygon/5068

first some dd. given address in the proposal is 0x7342DD5970d9151850386fD4Df286fD85EA4917f

<ethereum>
>>> root = Contract('0x7342DD5970d9151850386fD4Df286fD85EA4917f')
>>> root.getRecipient()
'0xE42d1087c84902cecA43c9887259EB611cfD58cA'
>>> root.getRelativeWeightCap() / 1e18
1.0

cap should be 15% as per request

check if child gauge is configured correctly:

<polygon>
>>> child = Contract('0xE42d1087c84902cecA43c9887259EB611cfD58cA')
>>> child.lp_token()
'0x7aF62C1ebf97034B7542CcEC13a2e79BbcF34380'
>>> lp = Contract(child.lp_token())
>>> lp.symbol()
'tetuBAL-BALWETH'
>>> lp.getAmplificationParameter()
{
    'value': 20000,
    'isUpdating': false,
    'precision': 1000
}

child gauge points to the correct (new) tetu pool with mentioned amp factor of 20

deploy new root gauge, pointing to same child but with 15% cap:

<ethereum>
>>> root_factory = Contract('0xa98Bce70c92aD2ef3288dbcd659bC0d6b62f8F13')
>>> root_factory.create('0xE42d1087c84902cecA43c9887259EB611cfD58cA', Decimal('.15e18'))

tx: https://etherscan.io/tx/0xab85365b447a12077f68098d02f9ab3215209a1833b7dc211b1dbb4b6b9aef0c
root gauge: 0xF6A814eD60653Cb0e36DA247B01E6309318328d4

payload to enable this new root gauge is included in this pr

simulation: https://dashboard.tenderly.co/public/safe/safe-apps/simulator/575b24bd-de17-4725-975c-cd8d7fa9cb26

@github-actions
Copy link
Contributor

BIP validation results for file BIPs/00proposed/BIP-XXX-enable_new_tetubal_gauge.json:
Commit: c8382edd288365114bb56cf5e46eb8ffc4695b38

+-------------------------------+----------------------------------------------------------------------------------------+
|           Validator           |                                         Result                                         |
+-------------------------------+----------------------------------------------------------------------------------------+
|     validate_contains_msig    |                                           OK                                           |
| validate_msig_in_address_book |                                           OK                                           |
|    validate_chain_specified   |                                           OK                                           |
|     validate_file_has_bip     | No BIP number found in file path BIPs/00proposed/BIP-XXX-enable_new_tetubal_gauge.json |
|  validate_path_has_weekly_dir | File BIPs/00proposed/BIP-XXX-enable_new_tetubal_gauge.json has has no YYYY-W## in path |
+-------------------------------+----------------------------------------------------------------------------------------+

@github-actions
Copy link
Contributor

File name: BIPs/00proposed/BIP-XXX-enable_new_tetubal_gauge.json
COMMIT: c8382edd288365114bb56cf5e46eb8ffc4695b38
CHAIN(S): polygon

+-----------------------+---------------------------------------------------------------------+------------------------+--------------------------------------------+------------------------------------------------------------------+-------------------------------------------------+-------+------------+
| function              | pool_id_and_address                                                 | symbol_and_info        | gauge_address_and_info                     | tokens                                                           | rate_providers                                  | bip   |   tx_index |
+=======================+=====================================================================+========================+============================================+==================================================================+=================================================+=======+============+
| GaugeAdderV4/addGauge | 0x7af62c1ebf97034b7542ccec13a2e79bbcf34380000000000000000000000c13  | tetuBAL-BALWETH        | 0xF6A814eD60653Cb0e36DA247B01E6309318328d4 | "20WETH-80BAL(0x3d468AB2329F296e1b9d8476Bb54Dd77D8c2320f)",      | "0x0000000000000000000000000000000000000000",   | N/A   |          0 |
|                       | pool_address: 0x7aF62C1ebf97034B7542CcEC13a2e79BbcF34380            | fee: 0.3, a-factor: 20 |  Style: L0 sidechain, cap: 15.0%           |   "tetuBAL-BALWETH(0x7aF62C1ebf97034B7542CcEC13a2e79BbcF34380)", |   "0x0000000000000000000000000000000000000000", |       |            |
|                       |                                                                     |                        |                                            |   "tetuBAL(0x7fC9E0Aa043787BFad28e29632AdA302C790Ce33)"          |   "0x0000000000000000000000000000000000000000"  |       |            |
+-----------------------+---------------------------------------------------------------------+------------------------+--------------------------------------------+------------------------------------------------------------------+-------------------------------------------------+-------+------------+

@Xeonus Xeonus changed the title BIP-XXX: Enable New Tetubal Gauge BIP-459: Enable New Tetubal Gauge Oct 25, 2023
@github-actions
Copy link
Contributor

BIP validation results for file BIPs/2023-W43/BIP-459.json:
Commit: d7220bde3600bd607b51cda71e581044680a6b40

+-------------------------------+--------+
|           Validator           | Result |
+-------------------------------+--------+
|     validate_contains_msig    |   OK   |
| validate_msig_in_address_book |   OK   |
|    validate_chain_specified   |   OK   |
|     validate_file_has_bip     |   OK   |
|  validate_path_has_weekly_dir |   OK   |
+-------------------------------+--------+

@github-actions
Copy link
Contributor

File name: BIPs/2023-W43/BIP-459.json
COMMIT: d7220bde3600bd607b51cda71e581044680a6b40
CHAIN(S): polygon

+-----------------------+---------------------------------------------------------------------+------------------------+--------------------------------------------+------------------------------------------------------------------+-------------------------------------------------+---------+------------+
| function              | pool_id_and_address                                                 | symbol_and_info        | gauge_address_and_info                     | tokens                                                           | rate_providers                                  | bip     |   tx_index |
+=======================+=====================================================================+========================+============================================+==================================================================+=================================================+=========+============+
| GaugeAdderV4/addGauge | 0x7af62c1ebf97034b7542ccec13a2e79bbcf34380000000000000000000000c13  | tetuBAL-BALWETH        | 0xF6A814eD60653Cb0e36DA247B01E6309318328d4 | "20WETH-80BAL(0x3d468AB2329F296e1b9d8476Bb54Dd77D8c2320f)",      | "0x0000000000000000000000000000000000000000",   | BIP-459 |          0 |
|                       | pool_address: 0x7aF62C1ebf97034B7542CcEC13a2e79BbcF34380            | fee: 0.3, a-factor: 20 |  Style: L0 sidechain, cap: 15.0%           |   "tetuBAL-BALWETH(0x7aF62C1ebf97034B7542CcEC13a2e79BbcF34380)", |   "0x0000000000000000000000000000000000000000", |         |            |
|                       |                                                                     |                        |                                            |   "tetuBAL(0x7fC9E0Aa043787BFad28e29632AdA302C790Ce33)"          |   "0x0000000000000000000000000000000000000000"  |         |            |
+-----------------------+---------------------------------------------------------------------+------------------------+--------------------------------------------+------------------------------------------------------------------+-------------------------------------------------+---------+------------+

@Tritium-VLK Tritium-VLK merged commit 4d60525 into main Oct 25, 2023
@Tritium-VLK Tritium-VLK deleted the bip-xxx-enable_new_tetubal_gauge branch November 27, 2023 23:45
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

Successfully merging this pull request may close these issues.

None yet

3 participants