ReferenceOverview

Reference Overview

Complete technical reference for RevvFi deployments.

Quick Reference

Core Constants

ConstantValuePurpose
LAUNCH_FEE0.1 ETHCreator fee to prevent spam
MIN_LOCK_DURATION30 daysMinimum LP lock period
MAX_LOCK_DURATION730 daysMaximum LP lock period
LAUNCH_INCENTIVE0.01 ETHReward for permissionless launch caller
SLIPPAGE_TOLERANCE1%Uniswap liquidity add/remove slippage

Governance Thresholds

Fund TypeApproval %TimelockMax Release/Quarter
Treasury60%7 daysUnlimited
Strategic Reserve66%14 days25% per quarter
Emergency80%48 hoursN/A
Lock Reduction75% + creator14 daysN/A

Networks

NetworkPriorityStatusUniswap Router
BasePrimaryLive0x…
ArbitrumPrimaryLive0x…
EthereumSecondaryOptional0x…

Function Quick Reference

RevvFiFactory

  • createLaunch(LaunchConfig) — Deploy new launch (requires 0.1 ETH)
  • getLaunch(uint256 launchId) — Retrieve launch info
  • pauseLaunch(address) — Emergency pause (guardian only)

RevvFiBootstrapper

  • depositETH() — LP deposits ETH, receives shares
  • launch() — Permissionless execution when target reached
  • refundLP() — Claim refund if launch fails
  • withdrawAsAssets(uint256 shareAmount) — Withdraw ETH + tokens
  • withdrawAsETH(uint256 shareAmount) — Withdraw as ETH only
  • emergencyPause() — Guardian pauses deposits

RevvFiGovernance

  • propose(ProposalType, bytes, string) — Create governance proposal
  • castVote(uint256 proposalId, uint256 forAgainst) — Vote on proposal
  • executeProposal(uint256 proposalId) — Execute approved proposal
  • getVotingPower(address) — Check LP’s voting power

Vault Contracts

TreasuryVault / StrategicReserveVault:

  • proposeRelease(uint256 amount, string description) — Propose token release
  • executeRelease(uint256 proposalId) — Execute release after vote

CreatorVestingVault:

  • release() — Creator claims vested tokens
  • releasableAmount() — View releasable amount

RewardsDistributor:

  • distributeRewards(address, uint256) — Governance distributes rewards
  • getSchedule() — View distribution schedule

Events

Core Events

Launch Creation:

LaunchCreated(
    uint256 indexed launchId,
    address indexed creator,
    address indexed bootstrapper,
    address tokenAddress
)

Deposits:

Deposit(
    address indexed lp,
    uint256 ethAmount,
    uint256 sharesMinted
)

Launch Success:

LaunchSuccess(
    uint256 totalDepositedETH,
    uint256 tokenAmountAdded,
    uint256 uniLPTokensReceived,
    uint256 maturityTime,
    address indexed caller
)

Refunds:

Refund(
    address indexed lp,
    uint256 ethAmount
)

Withdrawals:

WithdrawAsAssets(
    address indexed lp,
    uint256 ethAmount,
    uint256 tokenAmount
)

WithdrawAsETH(
    address indexed lp,
    uint256 totalEthAmount
)

Governance:

ProposalCreated(
    uint256 indexed proposalId,
    address indexed proposer,
    string description
)

VoteCast(
    address indexed voter,
    uint256 indexed proposalId,
    uint256 forAgainst,
    uint256 votingPower
)

ProposalExecuted(
    uint256 indexed proposalId
)

Common Errors

ErrorCauseSolution
"Deposits paused"Guardian paused launchWait for guardian to unpause
"Already launched"Launch already executedProceed to withdrawal phase
"Deposit window closed"Past raiseEndTimeTry to launch or get refund
"Hard cap exceeded"Deposit exceeds hard capDeposit less or wait for next launch
"Target not met"Insufficient depositsClaim refund after raiseEndTime
"Still locked"Before maturityTimeWait until lock period ends
"Insufficient shares"Trying to withdraw too muchCheck share balance
"Threshold not met"Proposal votes insufficientCannot execute proposal
"Timelock active"Execution timelock not elapsedWait for timelock to expire

Next Steps