public static BigDecimal getFeeInPercentage ( BigDecimal thirtyDayVolume ) { if ( thirtyDayVolume . compareTo ( new BigDecimal ( "1" ) ) <= 0 ) { return new BigDecimal ( "1" ) ; } else if ( thirtyDayVolume . compareTo ( new BigDecimal ( "2.5" ) ) <= 0 ) { return new BigDecimal ( "0.95" ) ; } else if ( thirtyDayVolume . compareTo ( new BigDecimal ( "4" ) ) <= 0 ) { return new BigDecimal ( "0.9" ) ; } else if ( thirtyDayVolume . compareTo ( new BigDecimal ( "6.5" ) ) <= 0 ) { return new BigDecimal ( "0.85" ) ; } else if ( thirtyDayVolume . compareTo ( new BigDecimal ( "9" ) ) <= 0 ) { return new BigDecimal ( "0.8" ) ; } else if ( thirtyDayVolume . compareTo ( new BigDecimal ( "12" ) ) <= 0 ) { return new BigDecimal ( "0.75" ) ; } else if ( thirtyDayVolume . compareTo ( new BigDecimal ( "18" ) ) <= 0 ) { return new BigDecimal ( "0.7" ) ; } else if ( thirtyDayVolume . compareTo ( new BigDecimal ( "25" ) ) <= 0 ) { return new BigDecimal ( "0.65" ) ; } else if ( thirtyDayVolume . compareTo ( new BigDecimal ( "32" ) ) <= 0 ) { return new BigDecimal ( "0.60" ) ; } else if ( thirtyDayVolume . compareTo ( new BigDecimal ( "40" ) ) <= 0 ) { return new BigDecimal ( "0.55" ) ; } else if ( thirtyDayVolume . compareTo ( new BigDecimal ( "55" ) ) <= 0 ) { return new BigDecimal ( "0.5" ) ; } else if ( thirtyDayVolume . compareTo ( new BigDecimal ( "75" ) ) <= 0 ) { return new BigDecimal ( "0.45" ) ; } else if ( thirtyDayVolume . compareTo ( new BigDecimal ( "100" ) ) <= 0 ) { return new BigDecimal ( "0.4" ) ; } else if ( thirtyDayVolume . compareTo ( new BigDecimal ( "125" ) ) <= 0 ) { return new BigDecimal ( "0.35" ) ; } else if ( thirtyDayVolume . compareTo ( new BigDecimal ( "160" ) ) <= 0 ) { return new BigDecimal ( "0.3" ) ; } else if ( thirtyDayVolume . compareTo ( new BigDecimal ( "200" ) ) <= 0 ) { return new BigDecimal ( "0.25" ) ; } else if ( thirtyDayVolume . compareTo ( new BigDecimal ( "250" ) ) <= 0 ) { return new BigDecimal ( "0.2" ) ; } else if ( thirtyDayVolume . compareTo ( new BigDecimal ( "320" ) ) <= 0 ) { return new BigDecimal ( "0.15" ) ; } else { return new BigDecimal ( "0.10" ) ; } }
Accessed July 28 2015