Skip to content

Conversation

@jalbrekt85
Copy link
Collaborator

@jalbrekt85 jalbrekt85 commented Jan 12, 2026

#155 - threshold comes out to $260

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.

Need to change calculation for minimum bribe amount, see comment in relevant section

raise ValueError("No valid CPV data found in StakeDAO analytics")
return statistics.mean(cpv_values)

def calculate_dynamic_min_incentive(
Copy link
Contributor

@Xeonus Xeonus Jan 13, 2026

Choose a reason for hiding this comment

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

This calculation is not correct IMO

calculate_dynamic_min_incentive does not account for Aura's veBAL share.

Current logic:
min_incentive = max_votes * 0.001 * (1 + buffer_pct) * avg_cpv
This returns the minimum general bribe portion needed. That is wrong. We need to estimate how much of those incentives go to AURA based on AURAs veBAL share

What's needed:
min_aura_portion = max_votes * 0.001 * (1 + buffer_pct) * avg_cpv
min_total_bribe = min_aura_portion / aura_vebal_share
This returns the minimum total bribe so that after the split, Aura's portion still meets the threshold.

Example: if we place $500 combined and if Auras veBAL share is 65%, then the bribes visible to the Aura Votemarket is $500*0.65=$325, so we need to check that the minimum total bribe for both markets leads to be above the minimum threshold for the Aura portion of the combined market.

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 point. ya, threshold needs to be based on the aura portion. fixed in 79a8fed

@jalbrekt85 jalbrekt85 requested a review from Xeonus January 13, 2026 17:48
@jalbrekt85
Copy link
Collaborator Author

also added fix for unrelated failing test: 4feaf10

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.

  • correct split calculation
  • tests all pass now
  • correct removal of unneccesary components

@gosuto-inzasheru gosuto-inzasheru merged commit fa36f36 into main Jan 14, 2026
7 checks passed
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