Opium Protocol consist of Opium Main Smart Contracts set introduced in this repository alongside with Opium token standard smart contracts
Protocol documentation can be found here https://docs.opium.network/
Generated documentation for code can be found here
Protocol was audited by:
approve
their ERC20 tokens to TokenSpender
Match
or SwaprateMatch
contracts depending on Order
typeCore
with position creations commandCore
validates derivative according to syntheticId
logic, collects margin from Matching contracts and mints position tokens with TokenMinter
Registry
contractcontracts/test
folder are mocks and helpers for testingTokenMinter
implements ERC721OTests are running against ganache-cli
npm run test
Because timeTravel
is used in tests, each run should be running on new ganache-cli
instance
Copyright © 2020 Blockeys BV. All rights reserved.