Veles - Carbon Credits Pallet
  • Get Started
    • What is the Veles pallet
    • What are carbon credits
    • How to use the Veles pallet
  • Pallet entities and functionalities
    • Entities
      • Authority Accounts
      • Carbon Footprint Accounts
      • Trader Accounts
      • Project Owner Accounts
      • Validator Accounts
      • Projects
      • Carbon Credit Batches
    • Functionalities
      • Authority exclusive functionalities
        • Update vote pass ratio
        • Update penalty levels
        • Update beneficiary splits
        • Update time value
        • Update fee value
      • Validator exclusive functionalities
        • Cast vote
        • Open complaint
      • Project owner exclusive functionalities
        • Propose project
        • Propose carbon credit batch
        • Repay debts
      • Carbon footprint account exclusive functionalities
      • General functionalities
        • Register for trader account
        • Register for project validator account
        • Register for project owner account
        • Submit carbon footprint report
        • Create sale order
        • Close sale order
        • Complete sale order
    • Timed events
    • Penalty rules
  • Contact
    • Contact
Powered by GitBook
On this page
  1. Pallet entities and functionalities
  2. Functionalities
  3. General functionalities

Create sale order

Note:

The following functionality can only be executed by a carbon trading eligible entity. That is by a entity that is a carbon footprint account, project owner account or a trader account.

If a user has some carbon credit holdings then he/she can choose to create a sale order for them. This can be done by the following functionality create_sale_order(batch_hash, credit_price, credit_amount). By doing so the user will need to specify the batch for which the sale order is being created, as well as the price at which one carbon credit is being sold and how many carbon credits are being sold. When the user creates this order, the credits that are connected to it will be flagged as unavailable until the order is closed or completed.

Once this is done, any other carbon trading eligible user can sing off on the sale order and buy the carbon credits at the specified price. If the order is not closed/completed within a given time period it will be automatically closed for any kind of transaction.

PreviousSubmit carbon footprint reportNextClose sale order

Last updated 10 months ago