...
No Format | ||
---|---|---|
| ||
Feature: Decentralized Exchange Scenario: Buyer exchanges 20xor for 100usd Given: Iroha Peer is up And Iroha Bridge module enabled And Iroha DEX module enabled And Peer has Domain with name exchange And Peer has Account with name buyer and domain exchange And Peer has Account with name seller and domain exchange And Peer has Asset Definition with name xor and domain exchange And Peer has Asset Definition with name usd and domain exchange And buyer Account in domain exchange has 100 amount of Asset with definition usd in domain exchange And seller Account in domain exchange has 20 amount When:of Asset with definition xor in domain exchange When buyer Account places Exchange Order 20xor for 100usd And seller Account places Exchange Order 100usd for 20 xor Then Iroha transfer 20 amount of Asset with definition xor in domain exchange from seller account in domain exchange to buyer account in domain exchange Then: Iroha transfer 100 amount of Asset with definition usd in domain exchange from account buyer in domain exchange to seller account in domain exchange Scenario: Buyer exchanges 20xor for 100usd Given: When: Then: Scenario: Buyer exchanges 20xor for 100usd Given: When: Then: |
...