🇺🇸
Protocol
HubSoTWTutorialPartners
ENG
ENG
  • Otherworld's Protocol
  • Smart Contracts
    • Providing Contract
    • Currency Contract
    • Milestone Contract
    • NFT(ERC-721) Contract
    • Minting Contract
    • Offering Contract
    • OD Contract
    • ERD Contract
    • Market Contract
    • oKLAY(ERC-20) Contract
    • Governance Power Contract
    • Proxy Contract
  • PROVIDING - DIMENSION
    • Providing
      • Project
      • Universe
      • Collection
      • Item
      • Milestone
      • Milestone-Comment
    • R&R
      • Player
      • Provider
      • Operator
      • Associator
      • Creator
    • DAO Fund
    • Currency
      • Service Currency
      • Project Currency
    • Launchpad
      • Offering
      • Round
      • Whitelist
      • Minting
    • Marketplace
      • Exchange
      • List
      • Offer
      • Effect of Proposal
      • Market Fee
      • Royalty
    • Governance
      • Governance Power
      • Governance Standard
    • License
      • License A : Full Access
      • License Standard
  • SOCIAL-DIMENSION
    • Other Wallet
    • Other Board
    • Other Channel
    • Other Messenger
    • Gamification
  • DAO-TOOL AS A SERVICE
    • Open Governance
    • Open Launchpad
    • Open Marketplace
    • Open Providing
Powered by GitBook
On this page
  • Address
  • Summary
  • Data
  • Base
  • Offering Distribution
  • 이벤트
  • Offering Distribution Invoice
  • Set Offering Distribution Rate
  • Set Provider Rate
  • Interface
  1. Smart Contracts

OD Contract

Offering Distribution Contract

Address

Address : (not yet deployed)

on Klaytn Blockchain Main-net

Summary

An offering distribution contract defines the rules that distribute revenue generated from an offering.

  • Define the 'Provider distribution rate'.

  • Define the 'offering distribution' details.

    • The distribution of an offering corresponds to one collection.

    • Defines the Provider distribution rate at the time the distribution is created.

    • Defines the Operator distribution rate.

    • Defines the Associator distribution rate.

    • Defines the Creator distribution rate.

    • Define the DAO fund distribution rate.

Data

Base

Name
Type

Denominator

Uint

Provider Rate

Uint

Created Timestamp

Uint

Offering Distribution

Name
Type

ID

Uint

Collection ID

Uint

Provider Rate

Uint

Operator Rate

Uint

Associator Rate

Uint

Creator Rate

Uint

DAO Rate

Uint

is Active

Boolean

Created Timestamp

Uint

이벤트

Offering Distribution Invoice

Name
Type

Offering Distribution ID

Uint

Offering ID

Uint

Provider

Address

To Provider

Uint

Operator

Address

To Operator

Uint

Associator

Address

To Associator

Uint

DAO

Address

To DAO

Uint

Set Offering Distribution Rate

Name
Type

Offering Distribution ID

Uint

Provider Rate

Uint

Operator Rate

Uint

Associator Rate

Uint

Creator Rate

Uint

DAO Rate

Uint

Set Provider Rate

Name
Type

Provider Rate

Uint

Interface

interface IOWOfferingDistribution {
    function addDistribution(
        uint256 _collectionId,
        uint256 _operatorRate,
        uint256 _associatorRate,
        uint256 _creatorRate,
        uint256 _DAORate
    ) external;

    function distributeCurrency(
        uint256 _collectionId,
        uint256 _offeringId,
        uint256 _balance,
        address _token
    ) external;

    function distributeKLAY(uint256 _collectionId, uint256 _offeringId)
        external
        payable;

    function setDistributionCollection(
        uint256 _distributionId,
        uint256 _collectionId
    ) external;

    function setDistributionRate(
        uint256 _distributionId,
        uint256 _operatorRate,
        uint256 _associatorRate,
        uint256 _creatorRate,
        uint256 _DAORate
    ) external;

    function setDistributionActive(uint256 _distributionId, bool _isActive)
        external;

    function isExistDistributionById(uint256 _distributionId)
        external
        view
        returns (bool);

    function getDistributionIdByCollectionId(uint256 _collectionId)
        external
        view
        returns (uint256);

    function getActiveDistributionIdByCollectionId(uint256 _collectionId)
        external
        view
        returns (uint256);

    function getDistributionById(uint256 _distributionId)
        external
        view
        returns (OfferingDistributionBase.OfferingDistribution memory);

    function getDistributionByCollectionId(uint256 _collectionId)
        external
        view
        returns (OfferingDistributionBase.OfferingDistribution memory);

    function getDistributions()
        external
        view
        returns (OfferingDistributionBase.OfferingDistribution[] memory);

    function setProviderRate(uint256 _providerRate) external;

    function getDenominator() external view returns (uint256);

    function getProviderRate() external view returns (uint256);
}
PreviousOffering ContractNextERD Contract

Last updated 2 years ago