Skip to content

Commit

Permalink
Adjust blocktime (#6)
Browse files Browse the repository at this point in the history
* Adjust blocktime

* Update coins.go
  • Loading branch information
vikmeup authored Jan 12, 2021
1 parent 47de41a commit 7e676f1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 9 deletions.
12 changes: 6 additions & 6 deletions coin/coins.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions coin/coins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
name: ICON
decimals: 18
sampleAddress: 'hxee691e7bccc4eb11fee922896e9f51490e62b12e'
blockTime: 10000

- id: 118
symbol: ATOM
Expand Down Expand Up @@ -50,7 +51,7 @@
handle: poa
name: Poa
decimals: 18
blockTime: 30000
blockTime: 5000
sampleAddress: '0x1fddEc96688e0538A316C64dcFd211c491ECf0d8'

- id: 195
Expand All @@ -66,6 +67,7 @@
handle: fio
name: FIO
decimals: 9
blockTime: 5000
sampleAddress: 'FIO5J2xdfWygeNdHZNZRzRws8YGbVxjUXtp4eP8KoGkGKoLFQ7CaU'

- id: 242
Expand Down Expand Up @@ -129,7 +131,7 @@
handle: binance
name: BNB
decimals: 8
blockTime: 4000
blockTime: 1000
minConfirmations: 2
sampleAddress: 'tbnb1fhr04azuhcj0dulm7ka40y0cqjlafwae9k9gk2'

Expand Down Expand Up @@ -403,7 +405,7 @@
handle: bsc
name: 'Binance Smart Chain'
decimals: 18
blockTime: 3000
blockTime: 5000
sampleAddress: '0x35552c16704d214347f29Fa77f77DA6d75d7C752'

- id: 20000714
Expand Down
1 change: 1 addition & 0 deletions numbers/number_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ func TestToDecimal(t *testing.T) {
assert.Equal(t, ToDecimal("212880628", 9), "0.212880628")
assert.Equal(t, ToDecimal("4634460765323682", 18), "0.0046344608")
assert.Equal(t, ToDecimal("100000000000", 8), "1000")
assert.Equal(t, ToDecimal("5000000000", 8), "50")
}

func TestFromDecimal(t *testing.T) {
Expand Down

0 comments on commit 7e676f1

Please sign in to comment.