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.