game-x-coin / gxc Goto Github PK
View Code? Open in Web Editor NEWThis project forked from eosio/eos
A blockchain well-integrated into games
Home Page: https://www.gamexcoin.io
License: MIT License
This project forked from eosio/eos
A blockchain well-integrated into games
Home Page: https://www.gamexcoin.io
License: MIT License
When user try to withdraw more than cached balance, issuer should have a permission of revert overdrwan balance and take it.
In current progress, issuer should carry out two actions - deposit
overdrawn balance and transfer
it to gxc.null. It looks like can be saved if issuer is able to transfer
withdrawing balance when not enough balance in deposit.
gxcli get currency balance gxc.token user game --verbose-balance
[{
"total": "1123.1111 LUCI@game",
"balance": "0.0000 LUCI@game",
"deposit": "37.0000 LUCI@game",
"withdraw": {
"quantity": "1086.1111 LUCI@game",
"scheduled_time": "2019-02-15T08:55:10"
},
"options": {
"frozen": false,
"whitelist": false
}
}
]
In verbose-balance mode, when withdraw all token and in progress
gxcli push action gxc.token withdraw '["user", "37.0000 LUCI@game"]' -p user
gxcli get currency balance gxc.token user game --verbose-balance
Expected Ouput
[{
"total": "1123.1111 LUCI@game",
"balance": "0.0000 LUCI@game",
"deposit": "0.0000 LUCI@game",
"withdraw": {
"quantity": "1123.1111 LUCI@game",
"scheduled_time": "2019-02-15T08:55:10"
},
"options": {
"frozen": false,
"whitelist": false
}
}
]
Actual output
[]
It looks like currency balance skipped when balance and deposit are zero, but withdrawing value should be included.
Test team call many withdraw request but 9/10 withdrawal request(delayed transaction) is not called.
You can find this issues by checking testuserxxxx(1~5) of Q@catfight, W@catfight, E@catfight, R@catfight.
some examples are
testuser1341 (R@catfight, E@catfight)
testuser3251 (R@catfight, W@catfight)
testuser4135 (E@catfight, R@catfight)
testuser3415 (R@catfight, W@catfight)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.