UGC Contract Code Review

in #ugchain6 years ago (edited)

Dear ugChain community:

UGC contract doesn't have batchTransfer function and proxyTransfer function. After careful deployment and strict audit of UGC smart contract , including UGC smart contract code transfer, details such as integer overflow, no potential vulnerabilities were identified.

UGC contract address: 0xf485c5e679238f9304d986bb2fc28fe3379200e5, welcome to inquire.

In addition, the UGTOKEN contract has been abandoned for a long time, and the UGC contract address is independent of the UGTOKEN contract address and there is no connection.

Attached is the source security review of UGC contract.

Ugc source code address:
https://github.com/ugchain/ugc-contract/tree/master/contracts
1.png

Key source documents:

Migration. sol file is a test file related to the Truffle test tool;
Multiowned.sol is a voting control document, The main function is to elect the administrator and decide whether to implement the core functions such as coupled-chains transfer.
StandardToken. Sol is the standard style ERC 20 Token implementation file;
Token. Sol is also the standard style Token interface file;
UGCoin. Sol is the realization of coupled-chains transfer function.

Key code snippet audit:

The require statement is used to prejudge the addition and subtraction of the account balance.
2.png
3.png
4.png
5.png
6.png
7.png

Conclusion:

UGC contract code doesn't have batchTransfer function and proxyTransfer function, there would be no batch transfer function bugs and proxyTransfer function bugs that have been widely reported recently. No integer overflow and other potential vulnerabilities and risks are found in the audit process, the contract code is standardized and the test results are within the scope of risk control.

Feel free to ask: https://t.me/ugChainchat