Contract API
AuctionFactory
Stateless factory for Auction and BribeRouter pairs.
Loading…
Browse documentation
Contract API
Stateless factory for Auction and BribeRouter pairs.
Loading…
Contract API
Stateless factory for Auction and BribeRouter pairs.
This reference is generated from the repository contracts. Check the deployed version before using a signature or constant. The audit covers a specific source revision.
Source: src/core/AuctionFactory.sol
Artifact: out/AuctionFactory.sol/AuctionFactory.json
Deploys an Auction and BribeRouter for the calling Resonance contract.
Public, ownerless, and stateless. Each Auction binds its immutable Resonance to msg.sender.
Public ABI: 1 function, 0 events, 0 custom errors, 0 constructors, 0 receive entries, 0 fallback entries.
createAuctionAndRouter(address,address,address,address,(uint256,uint256,uint256,uint256))function createAuctionAndRouter(contract IERC20 usdg, contract IERC20 paymentToken, address fund, contract Bribe bribe, struct Auction.Config config) external returns (contract Auction auction, contract BribeRouter bribeRouter);Deploys an Auction and its dedicated BribeRouter for the calling Resonance. Resonance supplies the Bribe it just created. Constructors validate dependencies and auction bounds.
Parameters
bribe: Existing Bribe controlled by the caller and paired with the new Auction and BribeRouter.config: Immutable auction configuration for the new Auction.fund: Treasury receiving the non-Bribe share of each purchase payment.paymentToken: ERC-20 asset buyers pay and the BribeRouter buffers.usdg: USDG revenue token sold by the new Auction.Returns
auction: Newly deployed Auction contract.bribeRouter: Newly deployed BribeRouter paired with auction and bribe.