EcosystemNFTsDocs

Footer

Xchange

  • Swap
  • Liquidity
  • Loans
  • Fund
  • Vote

Tokens

  • X7R
  • X7DAO
  • X7D
  • X7101-X7105

Explore

  • Dashboard
  • Guides
  • Integration
  • Whitepaper
  • Breakdowns
  • Onchains
  • FAQs

Community

  • Telegram
  • Twitter
  • Discord
  • Warpcast
  • Blog
  • Links

Permissionless Trustless Decentralized Exchange

Launch your project on Xchange with 10-1000x the initial liquidity across multiple blockchains where anyone can Swap, Borrow and Lend!

X7 Finance·Trust No One. Trust Code. Long Live DeFi.
  • Telegram
  • Twitter
  • Discordś
  • Warpcast
  • YouTube
  • Reddit
  • GitHub
  • Pioneer 1488 avatar
    Guides
    View
  • Pioneer 1488 avatar
    Integration
    View
  • Pioneer 1488 avatar
    Whitepaper
    View
  • Pioneer 1488 avatar
    Breakdowns
    View
  • Pioneer 1488 avatar
    Onchains
    View
  • Pioneer 1488 avatar
    FAQ
    View
    • X7R Token Contract
    • X7DAO Token Contract
    • X7100 Token Contract
    • X7D
    • X7DAO Discount Authority
    • X7DAO Liquidity Hub
    • X7 Ecosystem Splitter
    • X7 Liquidity Loan Terms
    • X7 Lending Pool
    • X7 Lending Pool Reserve
    • X7 Lending Discount Authority
    • X7 Liquidity Treasury
    • X7 Profit Share Splitter
    • X7R Discount Authority
    • X7R Liquidity Hub
    • X7 Token Burner
    • X7 Token Timelock
    • X7 Treasury Splitter V3
    • X7100 Discount Authority
    • X7100 Liquidity Hub
    • X7 Borrowing Maxi NFT
    • X7 Dex Maxi NFT
    • X7 Ecosystem Maxi NFT
    • X7 Liquidity Maxi NFT
    • X7 Pioneer NFT
    • X7 Magister NFT
    • Xchange Factory
    • Xchange Pair
    • X7R Token Contract
    • X7DAO Token Contract
    • X7100 Token Contract
    • X7D
    • X7DAO Discount Authority
    • X7DAO Liquidity Hub
    • X7 Ecosystem Splitter
    • X7 Liquidity Loan Terms
    • X7 Lending Pool
    • X7 Lending Pool Reserve
    • X7 Lending Discount Authority
    • X7 Profit Share Splitter
    • X7R Discount Authority
    • X7R Liquidity Hub
    • X7 Token Burner
    • X7 Token Timelock
    • X7 Treasury Splitter V3
    • X7100 Discount Authority
    • X7100 Liquidity Hub
    • X7 Borrowing Maxi
    • X7 Dex Maxi
    • X7 Ecosystem Maxi
    • X7 Liquidity Maxi NFT
    • X7 Pioneer NFT
    • X7 Magister NFT
    • Xchange Factory
    • Xchange Pair
    • X7R Token Contract
    • X7DAO Token Contract
    • X7100 Token Contract
    • X7D
    • X7DAO Discount Authority
    • X7DAO Liquidity Hub
    • X7 Ecosystem Splitter
    • X7 Liquidity Loan Terms
    • X7 Lending Pool
    • X7 Lending Pool Reserve
    • X7 Lending Discount Authority
    • X7 Profit Share Splitter
    • X7R Discount Authority
    • X7R Liquidity Hub
    • X7 Token Burner
    • X7 Token Timelock
    • X7 Treasury Splitter V3
    • X7100 Discount Authority
    • X7100 Liquidity Hub
    • X7 Borrowing Maxi
    • X7 Dex Maxi
    • X7 Ecosystem Maxi
    • X7 Liquidity Maxi NFT
    • X7 Pioneer NFT
    • X7 Magister NFT
    • Xchange Factory
    • Xchange Pair
Smart Contract Variables
breakdowns

X7 Lending Discount Authority

Smart Contract Function Variables

AuthorizedConsumerSet

Triggered when a consumer's authorization status is set.

Parameter NameParameter TypeDescription
consumeraddressThe address of the consumer.
isAuthorizedboolThe new authorization status.

TimeBasedDiscountSet

Triggered when the time-based discount is set.

Parameter NameParameter TypeDescription
oldMinuint256The old minimum time-based discount.
oldMaxuint256The old maximum time-based discount.
minuint256The new minimum time-based discount.
maxuint256The new maximum time-based discount.

AmountBasedDiscountSet

Triggered when the amount-based discount is set.

Parameter NameParameter TypeDescription
oldMinuint256The old minimum amount-based discount.
oldMaxuint256The old maximum amount-based discount.
minuint256The new minimum amount-based discount.
maxuint256The new maximum amount-based discount.

DiscountNFTSet

Triggered when the discount NFT is set.

Parameter NameParameter TypeDescription
oldAddressaddress

On this page

  1. Smart Contract Function Variables

    1. AuthorizedConsumerSet
    2. TimeBasedDiscountSet
    3. AmountBasedDiscountSet
    4. DiscountNFTSet
    5. ConsumableDiscountNFTSet
    6. DiscountNFTDiscountsSet
    7. ConsumableDiscountNFTDiscountsSet
    8. setAuthorizedConsumer
    9. setTimeBasedDiscount
    10. setAmountBasedDiscount
    11. setDiscountNFT
    12. setConsumableDiscountNFT
    13. setDiscountNFTDiscounts
    14. setConsumableDiscountNFTDiscounts
    15. getFeeModifiers
    16. useFeeModifiers
The old discount NFT address.
newAddressaddressThe new discount NFT address.

ConsumableDiscountNFTSet

Triggered when the consumable discount NFT is set.

Parameter NameParameter TypeDescription
oldAddressaddressThe old consumable discount NFT address.
newAddressaddressThe new consumable discount NFT address.

DiscountNFTDiscountsSet

Triggered when the discount NFT discounts are set.

Parameter NameParameter TypeDescription
oldOriginationFeeDiscountuint256The old origination fee discount for the discount NFT.
oldPremiumFeeDiscountuint256The old premium fee discount for the discount NFT.
originationFeeDiscountuint256The new origination fee discount for the discount NFT.
premiumFeeDiscountuint256The new premium fee discount for the discount NFT.

ConsumableDiscountNFTDiscountsSet

Triggered when the consumable discount NFT discounts are set.

Parameter NameParameter TypeDescription
oldOriginationFeeDiscountuint256The old origination fee discount for the consumable discount NFT.
oldPremiumFeeDiscountuint256The old premium fee discount for the consumable discount NFT.
originationFeeDiscountuint256The new origination fee discount for the consumable discount NFT.
premiumFeeDiscountuint256The new premium fee discount for the consumable discount NFT.

setAuthorizedConsumer

Parameter NameParameter TypeDescription
consumeraddressThe address of the consumer.
isAuthorizedboolThe new authorization status.

setTimeBasedDiscount

Parameter NameParameter TypeDescription
minuint256The new minimum time-based discount.
maxuint256The new maximum time-based discount.

setAmountBasedDiscount

Parameter NameParameter TypeDescription
minuint256The new minimum amount-based discount.
maxuint256The new maximum amount-based discount.

setDiscountNFT

Parameter NameParameter TypeDescription
discountNFTAddressaddressThe new address of the discount NFT.

setConsumableDiscountNFT

Parameter NameParameter TypeDescription
consumableDiscountNFTAddressaddressThe new address of the consumable discount NFT.

setDiscountNFTDiscounts

Parameter NameParameter TypeDescription
premiumFeeDiscountuint256The new premium fee discount for the discount NFT.
originationFeeDiscountuint256The new origination fee discount for the discount NFT.

setConsumableDiscountNFTDiscounts

| Parameter Name | Parameter Type | Description | |

---------------------- | -------------- | ----------------------------------------------------------------- | | premiumFeeDiscount | uint256 | The new premium fee discount for the consumable discount NFT. | | originationFeeDiscount | uint256 | The new origination fee discount for the consumable discount NFT. |

getFeeModifiers

Parameter NameParameter TypeDescription
borroweraddressThe address of the borrower.
loanAmountDetailsuint256[3]The loan amount details.
loanDurationDetailsuint256[3]The loan duration details.

useFeeModifiers

Parameter NameParameter TypeDescription
borroweraddressThe address of the borrower.
loanAmountDetailsuint256[3]The loan amount details.
loanDurationDetailsuint256[3]The loan duration details.
Previous
← X7 Lending Pool Reserve
Next
X7 Profit Share Splitter →

-

  • Pioneer 1488 avatar
    Guides
    View
  • Pioneer 1488 avatar
    Integration
    View
  • Pioneer 1488 avatar
    Whitepaper
    View
  • Pioneer 1488 avatar
    Breakdowns
    View
  • Pioneer 1488 avatar
    Onchains
    View
  • Pioneer 1488 avatar
    FAQ
    View