-
Notifications
You must be signed in to change notification settings - Fork 2
feat: trading vault #16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
TODO:
More details about our protocol rules, use the proofs to validate transitions for example
|
|
Needs clarifying:
|
But on Broker2broker we might want to pre-fund multiple channels to accelerate the latency for accepting incoming broker connections, and here I think the key is Ledger Channels rather than anything else in the smart-contract, because broker need to lock his fund dedicated to a channel and doing it offline would be ideal, but this requires R&D.
|
So, for PoC 1 we just go with the NitroAdjudicator? |
|
NitroAdjudicator for margin |
// SPDX-License-Identifier: MIT
pragma solidity ^0.8.0;
interface ITrade {
enum Side { BUY, SELL }
struct Order {
Side side;
string ticker;
uint256 amount;
address sender;
uint256 ts; // timestamp in milliseconds
}
// bytes32 orderId = keccak256( abi.encode( Order ) );
struct Trade {
bytes32 orderId;
bytes32 tradeId;
uint256 amount; // amount executed
uint256 ts; // timestamp in milliseconds
}
} |
65b771b to
62ba256
Compare

No description provided.