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. Vote Flywheel
  2. Smart Contracts

LootReserve

Contract holding all PAL & extra rewards allocated to the Loot system. The tokens are then sent to users when claiming Loot rewards.

pal

contract IERC20 pal

PAL token contract

extraToken

contract IERC20 extraToken

Extra token contract

loot

address loot

Address of the Loot contract

Init

event Init(address loot)

Event emitted when the contract is initialized

MaxAllowanceSet

event MaxAllowanceSet(address token, address spender)

Event emitted when the Max allowance is set for the Loot contract

CancelReserve

event CancelReserve(uint256 retrievedPalAmount, uint256 retrievedExtraAmount)

Event emitted when the Reserve is canceled and token claimed back

Parameters

Name
Type
Description

_loot

address

Address of the Loot contract

getBalances

function getBalances() external view returns (uint256 palBalance, uint256 extraBalance)

Get this contract balances

Return Values

Name
Type
Description

palBalance

uint256

(uint256) : PAL token balance

extraBalance

uint256

(uint256) : extra token balance

getRemainingAllowances

function getRemainingAllowances() external view returns (uint256 palAllowance, uint256 extraAllowance)

Get this contract remaining allowances for the Loot contract

Return Values

Name
Type
Description

palAllowance

uint256

(uint256) : PAL remaining allowance

extraAllowance

uint256

(uint256) : extra remaining allowance

resetMaxAllowance

function resetMaxAllowance() external

Resets the allowances for the Loot contract

PreviousLootVoteControllerNextBoost

Last updated 1 year ago

Was this helpful?