Ep60: Testing the PPSwap Website 4 - Check swap fees
2 years ago
41
/* 1. for the first 10000 swaps and a member that has 10M or more PPS, no transaction fee;
* 2. for a member that has 1M or more PPS, 0.0005 eth;
* 3. for a member that has less than PPS, 0.001 eth;
*/
function getSwapfee(uint offerID)
public
view
returns (uint)
{
if(offerID <= 3 || balances[msg.sender] >= 10*10**6*10**18) return 0;
if(balances[msg.sender] >= 1*10**6*10**18) return 5*10**14; /* 0.0005 eth */
else return 1*10**15; /* 0.001 eth */
}
Loading comments...
-
34:48
PPSwap Channel
2 years agoEp59: Testing the PPSwap Website 3 - Check rewards
331 -
15:55
PPSwap Channel
2 years agoEp57: Testing the PPSwap Website 1 - Buy and Sell PPS
79 -
16:59
PPSwap Channel
2 years ago $0.01 earnedEp58: Testing the PPSwap Website 2 - Swapping Weenus for Xeenus
20 -
0:53
The Andres Segovia Show
3 years agoCheck Out My Updated WEBSITE!
10 -
0:51
CrashCourseMedia
2 years ago $0.03 earnedTesting Testing
264 -
0:15
cbcchurch170
2 years agoTesting
128 -
0:15
cbcnews170
2 years agoTesting
56 -
41:46
Standpoint with Gabe Groisman
12 hours agoEp. 27. From GameStop to the NBA. Gabe Plotkin
33.5K3 -
55:04
Matt Kohrs
9 hours agoThe Volatile Week Ahead || The MK Show
42.6K23 -
26:18
Stephen Gardner
9 hours agoTop Republican UNLOADS on Democrats and Biden's MENTAL HEALTH!!
64.8K106