Skip to content

Conversation

@jalbrekt85
Copy link
Collaborator

@jalbrekt85 jalbrekt85 commented Sep 29, 2025

#219

  • adds a bribe platform abstraction. this will make adding new bribe platforms straightforward
  • adds stake dao as a new platform
  • bribe platform used by pools is still specified in the overrides config. the allocator now accepts "stakedao" as a new market_override and "split" as a new voting_pool_override (for the special case of stakeDAO where we want balancer bribes to be deposited on stakedao, but have aura bribes on hh)

also re-added functionality for partners in partner config to define a list of pools to process

@jalbrekt85 jalbrekt85 marked this pull request as ready for review October 12, 2025 21:41
@jalbrekt85
Copy link
Collaborator Author

jalbrekt85 commented Oct 14, 2025

test run: #232 (comment)
sim with the new stakedao campaign creation: https://www.tdly.co/shared/simulation/ad326cd1-9a35-40a1-bce9-21d42392d944

@jalbrekt85
Copy link
Collaborator Author

the stakedao createCampaign tx is not currently being generated correctly by SafeTxBuilder. fix here: BalancerMaxis/bal_tools#139

@Xeonus Xeonus self-requested a review October 27, 2025 15:58
@jalbrekt85 jalbrekt85 mentioned this pull request Oct 28, 2025
4 tasks
Copy link
Contributor

@Xeonus Xeonus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very clean abstraction of the bribing markets we intent to support. Added general comments for minor tweaks.


gauge_address = Web3.to_checksum_address(row["target"])
chain_name = self._gauge_to_chain_cache.get(gauge_address.lower(), "mainnet")
chain_id = AddrBook.chain_ids_by_name.get(chain_name)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No error handling if chain_id can't be mapped, then it's None

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ya if chain name/id cant be resolved then imo an explicit error should be thrown. also i dont think the chain name should default to mainnet. adjusted in e8231ba

"""
pass

@abstractmethod
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Questioning if this should be an abstractmethod as only HH uses approvals, worth making this optional?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good call. ya should be optional so other bribe platforms dont have to define the method if not needed. updated in f4a0454

@jalbrekt85 jalbrekt85 requested a review from Xeonus November 5, 2025 17:40
@jalbrekt85
Copy link
Collaborator Author

jalbrekt85 commented Nov 5, 2025

failing test is from ezkl in the partner config. can ignore here. fixed in #236

Copy link
Contributor

@Xeonus Xeonus left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, let's get test runs out with ezkl in effect

@jalbrekt85 jalbrekt85 merged commit 05afbca into biweekly-runs Nov 5, 2025
3 of 4 checks passed
@jalbrekt85 jalbrekt85 deleted the bribe-platform-abstraction branch November 5, 2025 20:33
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.

4 participants