Paladin Docs
  • Overview
  • Quest V2
    • Overview
    • Quest Types & Features
    • Creating a Quest
      • Fixed Quests
      • Ranged Quests
    • Voting for Quests
    • Delegating your vote
    • Claiming rewards
    • Reward Distribution
    • Smart Contracts (v2.1)
      • QuestDataTypes
      • QuestBoard
      • MultiMerkleDistributorV2
    • Smart Contracts (V2)
      • QuestDataTypes
      • QuestBoard
      • BiasCalculator
      • MultiMerkleDistributor
      • ExtraRewardsMultiMerkle
  • Vote Flywheel
    • Overview
    • Smart Contracts
      • HolyPalPower
      • Loot
      • LootCreator
      • LootVoteController
      • LootReserve
      • Boost
  • Warlord
    • Overview
    • $WAR
    • Minting and Staking WAR
    • Redeeming WAR
    • Smart contracts
  • Dullahan
    • Overview
    • Depositing stkAAVE
    • Borrowing discounted GHO
    • Smart contracts
      • DullahanVault
      • DullahanRewardsStaking
      • DullahanPod
      • DullahanPodManager
      • DullahanDiscountCalculator
      • DullahanFeeModule
      • OracleModule
      • DullahanRegistry
      • DullahanZapDeposit
  • Warden Boost
    • Boost Market
    • How to Use Warden
      • As a Seller
        • Through the UI
        • Through Smart Contracts
      • As a Buyer
        • Through the UI
        • Through Smart Contracts
    • Smart Contract
    • MultiBuy
  • Warden Pledge
    • Overview
    • How to use Pledge
      • Create a Pledge
      • Delegating veBoosts
    • Smart Contract
  • Paladin Lending
    • Protocol Overview
    • Liquidity Mining
    • Technical docs
      • PalPool
      • PalToken
      • Delegators
      • Controller
      • Interest Calculator
      • PalLoan
      • PalLoanToken
      • PalPool Variants
      • Price Oracle
      • Error Codes
  • Governance
    • $PAL
    • Holy PAL (hPAL)
      • Smart Contract
    • Delegation
    • Voting
    • Voting Proposal Framework
  • Warden Quest (V1) - Deprecated
    • Creating a Quest
    • Smart contracts
      • QuestBoard
      • MultiMerkleDistributor
      • ExtraRewardsMultiMerkle
    • Covenant
  • Deployed contracts
    • Mainnet
    • Crosschain
    • Sonic
    • Admin
    • Audits
  • Resources
    • Paladin Whitepaper
  • Twitter
  • Discord
  • Forum
  • Snapshot
Powered by GitBook
On this page

Was this helpful?

  1. Quest V2
  2. Smart Contracts (v2.1)

QuestDataTypes

PeriodState

enum PeriodState {
  ZERO,
  ACTIVE,
  CLOSED,
  DISTRIBUTED
}

State of each Period for each Quest

All Periods are ACTIVE at creation since the voters from past periods are also accounted for the future period

QuestVoteType

enum QuestVoteType {
  NORMAL,
  BLACKLIST,
  WHITELIST
}

Types of Vote logic for Quests

  • NORMAL: basic vote logic

  • BLACKLIST: remove the blacklisted voters bias from the gauge biases

  • WHITELIST: only sum up the whitelisted voters biases

QuestRewardsType

enum QuestRewardsType {
  FIXED,
  RANGE
}

Types of Rewards logic for Quests

  • FIXED: reward per vote is fixed

  • RANGE: reward per vote is a range between min and max, based on the Quest completion between min objective and max objective

QuestCloseType

enum QuestCloseType {
  NORMAL,
  ROLLOVER,
  DISTRIBUTE
}

Types of logic for undistributed rewards when closing Quest periods

  • NORMAL: undistributed rewards are available to be withdrawn by the creator

  • ROLLOVER: undistributed rewards are added to the next period, increasing the reward/vote parameter

  • DISTRIBUTE: undistributed rewards are sent to the gauge for direct distribution

PreviousSmart Contracts (v2.1)NextQuestBoard

Last updated 1 year ago

Was this helpful?