πŸ₯‡GoldChain

Functions and Usages

Golden Chain defines a chain consisting of a series of order nodes representing the sell orders for the shares listed for sale, with the nodes sorted in order from the lowest to the highest transfer price. Investors can call a specific API to issue a fixed price delegation buy orders and pay ETH as consideration, the system will match the sell order in the delegation valid period with the buy order with the lowest price as per the "price first, time first" principle. As long as the sell order price is less than or equal to the buy order, the order will be sold at the sell order price, and the closed order will be adjusted to the number of transactions or fully removed from the golden chain until the amount of the buy order is depleted, or no more sell order can be found at the right price. If there is a balance, the system will automatically return the investor's ETH account for the investor to retrieve, aiming to prevent re-entry attacks. Each sell order object provides delegation validity period, once the validity period expires, the system will automatically in the next aggregation of the expired sell order to do the withdrawal processing; the delegate can initiate to withdraw the specific sell order from the listing of the golden chain.

All the listing shares can be transferred through listing, while the total issue amount, maximum issue price, minimum issue price, transaction price and other transaction conditions can be detailedly stipulated in the listing rules.

After the transaction is closed, the relevant sell order will be directly deleted from the golden chain, but the system will keep the transaction log of the successful transaction in event.

Members and Attributes

The golden chain mainly consists of the node object representing the sell order of listing shares, and its sell order node mapping chain composed of "node number -> node object".

Nodes of Sell Order

Attributes List of Sell Order

Parameter Objects

The Parameter object is mainly used to track the head and tail user numbers of the minority shareholder queue, as well as some aggregated data.

Golden Chain

Query API

The query API well describes the function and usage of the Golden Chain in the whole system, as shown in the table below.

Source Code

Last updated