This script applies a 10% discount to the base price of all listings for any marketplaces the script is run on:
discount = 0.10; price = item.basePrice; return price * (1 - discount);