O3 Swap, a proprietary cross-chain aggregation protocol, was designed to achieve more efficient trading pathways using 2 solutions. The first solution is Liquidity Aggregation - aggregating the liquidity source across leading Decentralized Exchanges(DEXs) from mainstream blockchains. Another part is Cross-Chain Exchange - implementing cross-chain protocols that allow DeFi users to freely exchange cross-chain assets with one click within their own wallet.
There are plenty of sources available in the cryptocurrency market, especially with the emerging burst of Layer 2 projects on Ethereum as well as decentralized environments such as chainBinance Smart Chain and Huobi Eco Chain. These chains are independent from each other, the assets of which are not interconvertible. O3 Swap is changing the game in an effort to realize the interconversion of assets from separate chains. At the same time, O3 aggregator provides the best price quote from more than 10 DEXs for users who are seeking for the best price.
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
O3.transferFrom(address,address,uint256).allowance (#1025) shadows:
- ERC20.allowance(address,address) (#514-516) (function)
- IERC20.allowance(address,address) (#380) (function)
Rename the local variables that shadow another component.
Additional information: link
Reentrancy in O3.stake(address,uint256) (#1040-1050):
External calls:
- _pullToken(token,_msgSender(),amount) (#1043)
- IERC20(token).safeTransferFrom(from,address(this),amount) (#1133)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (#293)
- (success,returndata) = target.call{value: value}(data) (#170)
External calls sending eth:
- _pullToken(token,_msgSender(),amount) (#1043)
- (success,returndata) = target.call{value: value}(data) (#170)
State variables written after the call(s):
- _updateStakeRecord(_msgSender(),token,info.amountStaked.add(amount)) (#1046)
- _stakingRecords[staker][token].amountStaked = _amountStaked (#1074)
- _stakingRecords[staker][token].blockNumber = block.number (#1075)
- _mintUnlocked(_msgSender(),unlockedAmount) (#1047)
- _totalUnlocked = _totalUnlocked.add(amount) (#1110)
- _mintUnlocked(_msgSender(),unlockedAmount) (#1047)
- _unlocks[recipient] = _unlocks[recipient].add(amount) (#1109)
Apply the check-effects-interactions pattern.
Additional information: link
Reentrancy in O3.unstake(address,uint256) (#1052-1062):
External calls:
- _pushToken(token,_msgSender(),amount) (#1059)
- IERC20(token).safeTransfer(to,amount) (#1137)
- returndata = address(token).functionCall(data,SafeERC20: low-level call failed) (#293)
- (success,returndata) = target.call{value: value}(data) (#170)
External calls sending eth:
- _pushToken(token,_msgSender(),amount) (#1059)
- (success,returndata) = target.call{value: value}(data) (#170)
Event emitted after the call(s):
- LOG_UNSTAKE(_msgSender(),token,amount) (#1060)
Apply the check-effects-interactions pattern.
Additional information: link
Address._verifyCallResult(bool,bytes,string) (#222-239) uses assembly
- INLINE ASM (#231-234)
Do not use evm assembly.
Additional information: link
SafeMath.trySub(uint256,uint256) (#716-719) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.6.0 (#3) allows old versions
Deploy with any of the following Solidity versions: 0.5.16 - 0.5.17, 0.6.11 - 0.6.12, 0.7.5 - 0.7.6 Use a simple pragma version that allows any of these versions. Consider using the latest version of Solidity for testing.
Additional information: link
Low level call in Address.functionDelegateCall(address,bytes,string) (#214-220):
- (success,returndata) = target.delegatecall(data) (#218)
Avoid low-level calls. Check the call success. If the call is meant for a contract, check for code existence
Additional information: link
Parameter O3.setUnlockBlockGap(address,uint256)._blockGap (#1035) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Redundant expression "this (#11)" inContext (#5-14)
Remove redundant statements if they congest code but offer no value.
Additional information: link
decreaseAllowance(address,uint256) should be declared external:
- ERC20.decreaseAllowance(address,uint256) (#580-583)
Use the external attribute for functions never called from the contract.
Additional information: link
BscScan page for the token does not contain additional info: website, socials, description, etc.
Additional information: link
Unable to find token contract audit
Unable to verify token contract address on the website
Unable to find audit link on the website
Unable to find whitepaper link on the website
Unable to find Telegram link on the website
Unable to find Twitter link on the website
Unable to find token on CoinHunt
Additional information: link
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of scam / price dump / death
Young tokens have high risks of price dump / death
Twitter account link seems to be invalid
Unable to find Youtube account