SABT
SABT contracts consists of a membership for registration and subscription, an accountant to record points, and treasury to exchange tokens with it.
Membership
Membership in this context refers to the component responsible for defining the logic behind generating SABTs. SABTs are the non-fungible tokens that assigns a certain UID for accountant to record points from its holder's actions.
Accountant
Accountant is the storage of points from user actions. It is connected with reporter contracts which reports points from user's interactions with Standard Protocol. Points are accounted per era, and all points are used to be traded with tokens stored in each era in Treasury contracts.
Treasury
Treasury is the storage of total revenue from Standard Exchange and exchanges it to traders based on performance. Treasury enables traders to exchange with their points on each era on every token Standard Exchange has earned for fees.
SABT Contracts
SABT consists of a non-fungible token to prove membership, a membership registry, an accountant to record incentives and the treasury to claim rewards.
A significant amount of care and attention has been given to gas optimization in the SABT contracts. The result is a substantial reduction in gas costs for all protocol interactions at the cost of a reduction in code clarity.
Membership
Membership Reference
Membership records metadata on
Accountant
Orderbook Reference
Orderbooks are the storage of orders and custody for the paired assets for atomic swap. users' funds are segregated with extensive business logic with their orders, so hackers cannot access more than each user's deposited amount in his or her orders.
Treasury
MatchingEngine Reference
MatchingEngine contract primarily serve as the automated market maker for all paired assets. It interacts with orderbooks to get orders and match with user's order. Additionally, they expose price oracle data and may be used as an asset source for flash transactions. There is no dark market as all operations are done on-chain environment. No brokerage nor external related device is involved, and the contract provides fair and clear disclosure on how the order is matched.
Last updated