Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
P
plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
JIRA
JIRA
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
link33
plugin
Commits
b424df05
Commit
b424df05
authored
Nov 23, 2021
by
cxb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update profile description
parent
d735d907
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
27 additions
and
33 deletions
+27
-33
chain33.para.toml
chain33.para.toml
+13
-16
chain33.para.toml.readme
chain33.para.toml.readme
+13
-16
exchangedb.go
plugin/dapp/exchange/executor/exchangedb.go
+1
-1
No files found.
chain33.para.toml
View file @
b424df05
...
...
@@ -347,6 +347,19 @@ Enable=0
[fork.sub.accountmanager]
Enable
=
0
#exchange合约相关配置
[mver.exec.sub.exchange]
#银行帐户列表(现第一个地址用来收取手续费)
banks
=
["1PTGVR7TUm1MJUH7M1UNcKBGMvfJ7nCrnN"]
#Fee
#币种配置,
#rate每笔手续费率,配置时需*1e8(如:收取每笔交易千分之一的手续费,rate=100000)
#minFee最小手续费,配置时需*1e8(如:最小手续费收取1个,minFee=100000000)
coins
=
[
{
name
=
"bty"
,
rate
=
100000
,
minFee
=
0
}
,
{
name
=
"ETH"
,
rate
=
100000
,
minFee
=
0
}
,
{
name
=
"USDT"
,
rate
=
100000
,
minFee
=
0
}
,
]
[fork.sub.exchange]
Enable
=
0
...
...
@@ -413,19 +426,3 @@ database="chain33metrics"
username
=
""
password
=
""
namespace
=
""
#exchange合约相关配置
[mver.exec.sub.exchange]
#银行帐户列表(现第一个地址用来收取手续费)
banks
=
["1PTGVR7TUm1MJUH7M1UNcKBGMvfJ7nCrnN"]
#Fee
#币种配置,
#rate每笔手续费率,配置时需*1e8(如:收取每笔交易千分之一的手续费,rate=100000)
#minFee最小手续费,配置时需*1e8(如:最小手续费收取1个,minFee=100000000)
coins
=
[
{
name
=
"bty"
,
rate
=
100000
,
minFee
=
0
}
,
{
name
=
"ETH"
,
rate
=
100000
,
minFee
=
0
}
,
{
name
=
"USDT"
,
rate
=
100000
,
minFee
=
0
}
,
]
[fork.sub.exchange]
Enable
=
0
chain33.para.toml.readme
View file @
b424df05
...
...
@@ -352,6 +352,19 @@ Enable=0
[fork.sub.accountmanager]
Enable=0
#exchange合约相关配置
[mver.exec.sub.exchange]
#银行帐户列表(现第一个地址用来收取手续费)
banks = ["1PTGVR7TUm1MJUH7M1UNcKBGMvfJ7nCrnN"]#Fee
#币种配置,
#rate每笔手续费率,配置时需*1e8(如:收取每笔交易千分之一的手续费,rate=100000)
#minFee最小手续费,配置时需*1e8(如:最小手续费收取1个,minFee=100000000)
coins = [
{ name = "bty", rate = 100000, minFee = 0 },
{ name = "ETH", rate = 100000, minFee = 0 },
{ name = "USDT", rate = 100000, minFee = 0 },
]
[fork.sub.exchange]
Enable=0
...
...
@@ -418,19 +431,3 @@ database="chain33metrics"
username=""
password=""
namespace=""
#exchange合约相关配置
[mver.exec.sub.exchange]
#银行帐户列表(现第一个地址用来收取手续费)
banks = ["1PTGVR7TUm1MJUH7M1UNcKBGMvfJ7nCrnN"]#Fee
#币种配置,
#rate每笔手续费率,配置时需*1e8(如:收取每笔交易千分之一的手续费,rate=100000)
#minFee最小手续费,配置时需*1e8(如:最小手续费收取1个,minFee=100000000)
coins = [
{ name = "bty", rate = 100000, minFee = 0 },
{ name = "ETH", rate = 100000, minFee = 0 },
{ name = "USDT", rate = 100000, minFee = 0 },
]
[fork.sub.exchange]
Enable = 0
plugin/dapp/exchange/executor/exchangedb.go
View file @
b424df05
...
...
@@ -97,7 +97,7 @@ func CheckCount(count int32) bool {
//CheckAmount 最小交易 1coin
func
CheckAmount
(
amount
,
coinPrecision
int64
)
bool
{
if
amount
<
coinPrecision
||
amount
>=
types
.
MaxCoin
*
coinPrecision
{
if
amount
<
1
||
amount
>=
types
.
MaxCoin
*
coinPrecision
{
return
false
}
return
true
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment