Skip to content

Commit

Permalink
Fix/init price (paritytech#232)
Browse files Browse the repository at this point in the history
spot mock&test
  • Loading branch information
toxotguo authored Jan 22, 2019
1 parent efdcf99 commit c3d0eb6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xrml/xdex/spot/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ pub fn new_test_ext(
<xassets::Module<Test> as ChainT>::TOKEN.to_vec(),
<xbitcoin::Module<Test> as ChainT>::TOKEN.to_vec(),
5,
100000,
true,
)],
// (OrderPair { first: Runtime::CHAINX_SYMBOL.to_vec(), second: BridgeOfBTC::SYMBOL.to_vec() }, 8)
price_volatility: 10,
_genesis_phantom_data: Default::default(),
}
.build_storage()
.unwrap()
Expand Down
2 changes: 1 addition & 1 deletion xrml/xdex/spot/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fn test_pair() {
let a: u64 = 1; // accountid
let first: Token = b"EOS".to_vec();
let second: Token = b"ETH".to_vec();
Spot::add_pair(first.clone(), second.clone(), 2, true).unwrap();
Spot::add_pair(first.clone(), second.clone(), 2,100, true).unwrap();
assert_eq!(Spot::pair_len(), 2);

let pair = Spot::get_pair_by(&first, &second).unwrap();
Expand Down

0 comments on commit c3d0eb6

Please sign in to comment.