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
  • UNIT
  • GHO_DISCOUNTED_PER_DISCOUNT_TOKEN
  • MIN_DISCOUNT_TOKEN_BALANCE
  • MIN_DEBT_TOKEN_BALANCE
  • calculateAmountForMaxDiscount

Was this helpful?

  1. Dullahan
  2. Smart contracts

DullahanDiscountCalculator

UNIT

uint256 UNIT

1e18 scale

GHO_DISCOUNTED_PER_DISCOUNT_TOKEN

uint256 GHO_DISCOUNTED_PER_DISCOUNT_TOKEN

Amount of debt that is entitled to get a discount per unit of discount token Expressed with the number of decimals of the discounted token

MIN_DISCOUNT_TOKEN_BALANCE

uint256 MIN_DISCOUNT_TOKEN_BALANCE

Minimum balance amount of discount token to be entitled to a discount Expressed with the number of decimals of the discount token

MIN_DEBT_TOKEN_BALANCE

uint256 MIN_DEBT_TOKEN_BALANCE

Minimum balance amount of debt token to be entitled to a discount Expressed with the number of decimals of the debt token

calculateAmountForMaxDiscount

function calculateAmountForMaxDiscount(uint256 totalDebtAmount) external pure returns (uint256 neededAmount)

End of Aave parameters zone

PreviousDullahanPodManagerNextDullahanFeeModule

Last updated 1 year ago

Was this helpful?