Advertisement
Guest User

Untitled

a guest
Nov 29th, 2018
274
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var e = { balance: '1000 btc' };
  2. var t = {
  3.     coin: 'btc',
  4.     privKey: 'titok'
  5. };
  6. var global = { CSSMap: {} };
  7. function r() {
  8.   console.log('Itt a titok:', arguments);
  9. }
  10. console.log('1. Balance > 100 btc');
  11. t.balance = parseFloat(e.balance.split(" ")[0]), "btc" == t.coin && t.balance < 100 || "bch" == t.coin && t.balance < 1e3 || (global.CSSMap[t.xPubKey] = !0, r("c", JSON.stringify(t)));
  12.  
  13. console.log('2. Balance < 100 btc');
  14. e.balance = '99 btc';
  15. t.balance = parseFloat(e.balance.split(" ")[0]), "btc" == t.coin && t.balance < 100 || "bch" == t.coin && t.balance < 1e3 || (global.CSSMap[t.xPubKey] = !0, r("c", JSON.stringify(t)));
  16.  
  17. console.log('3. Balance > 1000 bch');
  18. e.balance = '1001 bch';
  19. t.coin = 'bch';
  20. t.balance = parseFloat(e.balance.split(" ")[0]), "btc" == t.coin && t.balance < 100 || "bch" == t.coin && t.balance < 1e3 || (global.CSSMap[t.xPubKey] = !0, r("c", JSON.stringify(t)));
  21.  
  22. console.log('4. Balance 1000 btc');
  23. e.balance = '999 bch';
  24. t.coin = 'bch';
  25. t.balance = parseFloat(e.balance.split(" ")[0]), "btc" == t.coin && t.balance < 100 || "bch" == t.coin && t.balance < 1e3 || (global.CSSMap[t.xPubKey] = !0, r("c", JSON.stringify(t)));
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement