Skip to content

feat: Add Votium initiative - #133

Open
bingen wants to merge 4 commits into
mainfrom
votium-initiative
Open

feat: Add Votium initiative#133
bingen wants to merge 4 commits into
mainfrom
votium-initiative

Conversation

@bingen

@bingen bingen commented Jun 6, 2026

Copy link
Copy Markdown
Contributor

TODO

  • Check that everything works on Votium side
    • Check that it is ok to send bribes twice per week
    • Check that bribes can be claimed
    • Do we need exclusions?

@bingen bingen self-assigned this Jun 6, 2026
@bingen
bingen force-pushed the votium-initiative branch from 1b3a0b0 to dd8f10d Compare June 16, 2026 19:28
@bingen
bingen marked this pull request as ready for review June 16, 2026 19:28
Comment thread src/VotiumInitiative.sol Outdated
}

function _depositIntoVotium() internal {
uint256 total = bold.balanceOf(address(this));

@danielattilasimon danielattilasimon Jun 17, 2026

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

As this contract inherits BribeInitiative, it automatically allows anyone to deposit BOLD bribes. When someone does that, those BOLD bribes show up on the UI, which might entice users to vote on the initiative. However, they won't be able to claim the bribes they earn, as this function is effectively stealing the bribes from them and giving it to LPs.

See the test test_Counterexample_BribeInsolvency that demonstrates this.

@danielattilasimon danielattilasimon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

We should either disable the BOLD bribes functionality of BribeInitiative (e.g. by overriding depositBribe and ensuring _boldAmount == 0) or do proper accounting to avoid commingling BOLD incentives (coming from Governance) with BOLD bribes.

See: #133 (comment)

It reintroduces the issue of BOLD being potentially stuck in the contract, which is not a big deal anyway.

@danielattilasimon danielattilasimon left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good to me! 👍 👍

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.

2 participants