File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -24,9 +24,9 @@ let NORMAL_SUPPLY = BigInt.fromI32(5000000).times(BigInt.fromI32(10).pow(18)),
24
24
MIN_SUPPLY_5 = BigInt . fromI32 ( 2500000 ) . times ( BigInt . fromI32 ( 10 ) . pow ( 18 ) ) ,
25
25
MIN_SUPPLY_6 = BigInt . fromI32 ( 1 ) . times ( BigInt . fromI32 ( 10 ) . pow ( 18 ) )
26
26
27
- function getMinSupply ( dayStr : string ) : BigInt {
28
- let dayNum = parseInt ( dayStr )
29
- switch ( dayNum ) {
27
+ function getMinSupply ( day : BigInt ) : BigInt {
28
+ let dayVal = day . toI32 ( )
29
+ switch ( dayVal ) {
30
30
case 8 : case 10 :
31
31
return MIN_SUPPLY_1
32
32
case 14 : case 16 : case 17 :
@@ -153,7 +153,7 @@ export function handleWiseReservation(event: WiseReservation): void {
153
153
if ( gResDay == null ) {
154
154
gResDay = new GlobalReservationDay ( gResDayID )
155
155
gResDay . investmentDay = reservation . investmentDay
156
- gResDay . minSupply = getMinSupply ( gResDay . investmentDay . toString ( ) )
156
+ gResDay . minSupply = getMinSupply ( gResDay . investmentDay )
157
157
gResDay . maxSupply = MAX_SUPPLY . minus ( gResDay . minSupply )
158
158
gResDay . totalAmount = BigInt . fromI32 ( 0 )
159
159
gResDay . totalRealAmount = BigInt . fromI32 ( 0 )
You can’t perform that action at this time.
0 commit comments