Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. ### V2 Invalid Filter:
  2.  
  3. Get 0x bids (remove all bids where gas fees are > max(5 cents, 1% of the trade's value), we should do this for all books on augur in v2)
  4.  
  5. valid_revenue = best_bid_quantity*range*(1-reporter_fee-creator_fee)*e^(-.15*time_til_market_finalizes_in_years) - gasToDoATrade - gasToClaimWinnings
  6. valid_cost = best_bid_quantity * (max - best_bid)
  7. valid_profit = valid_revenue - valid_cost
  8.  
  9. if valid_profit >= 0:
  10. show_market
  11. else:
  12. invalid
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement