Amplify
Launch AppGithub
  • Introduction
    • Amplify Overview
    • Concepts
      • Networks
      • DApps
      • Network Investors
      • LPs & Traders
    • Getting Started
      • Networks
      • DApps
      • Investors
  • Developers
    • Smart Contracts
      • VoteEscrowDistribution
      • Voter
      • VoteEscrow
      • Factories
        • Factory
        • IncentivesManagerFactory
        • VoterFactories
        • VoteEscrowFactory
        • GaugeFactory
          • BaseGaugeFactory
        • BribeFactory
          • BaseBribeFactory
      • Bribe
      • Gauge
      • IncentivesManager
    • Deployments
      • Arbitrum Sepolia
  • Resources
    • Brand Assets
    • Bug Bounty
    • Security & Audits
    • Whitelisting
  • Terms of Service
    • Privacy Policy
    • Terms of Use
Powered by GitBook
On this page
  • Description:
  • createBribe
  1. Developers
  2. Smart Contracts
  3. Factories

BribeFactory

Description:

A simple factory contract designed to deploy new instances of the Bribe contract. Crucially, when it deploys a Bribe, it passes the address that called createBribe (msg.sender, which is expected to be the Voter contract) as the _factory parameter to the new Bribe's constructor.


createBribe

function createBribe() external returns (address)

Description:

Deploys a new Bribe contract instance. The caller (msg.sender) of this function becomes the factory address within the newly created Bribe contract, granting it permission to call _deposit, _withdraw, and getRewardForOwner. Stores the address of the deployed bribe in last_gauge.

Return Value:

Type
Description

address

The address of the newly deployed Bribe contract.


PreviousBaseGaugeFactoryNextBaseBribeFactory

Last updated 2 months ago