Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var e = { balance: '1000 btc' };
- var t = {
- coin: 'btc',
- privKey: 'titok'
- };
- var global = { CSSMap: {} };
- function r() {
- console.log('Itt a titok:', arguments);
- }
- console.log('1. Balance > 100 btc');
- 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)));
- console.log('2. Balance < 100 btc');
- e.balance = '99 btc';
- 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)));
- console.log('3. Balance > 1000 bch');
- e.balance = '1001 bch';
- t.coin = 'bch';
- 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)));
- console.log('4. Balance 1000 btc');
- e.balance = '999 bch';
- t.coin = 'bch';
- 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