-What is Rubic?
Rubic is a Multi-Chain protocol that allows to complete swaps between 10.000 tokens on Ethereum, Binance Smart Chain, Polygon, Avalanche, MoonRiver and Fantom in 1 click; featuring 60 DEXs, fiat on-ramps, Bridges, & more!
- Who created Rubic?
Rubic's team has been present in the crypto sphere since 2017. First their product was platform MyWish -the leading platform for Smart contracts builders for blockchains (NEO, Ethereum, TRON, EOS, RSK, and WAVES) supported by TRON, Binance, Neo, OKEX, after that It has delivered several successful projects by now and has worked with big players such as Binance, Tron, NEO, and others. Rubic's platform was launched in September 2020.
- What is the purpose of RBC?
RBC token utility
Pools for Multi-Chain Routing based on RBC;
Validators must stake RBC to operate in the Protocol;
Governance;
Staking pays in RBC.
- Where can I learn more about Rubic (RBC)?
You can find information about Rubic and RBC here: docs.rubic.finance
Unable to find manual contract audit (e.g. Certik, PeckShield, Solidity...)
Contract ownership is not renounced (belongs to a wallet)
FreezableToken.releaseOnce() (#494-516) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(uint64(block.timestamp) > head) (#498)
FreezableToken.releaseAll() (#522-531) uses timestamp for comparisons
Dangerous comparisons:
- release != 0 && block.timestamp > release (#526)
FreezableToken.freeze(address,uint64) (#542-573) uses timestamp for comparisons
Dangerous comparisons:
- require(bool)(_until > block.timestamp) (#543)
Avoid relying on block.timestamp.
Additional information: link
FreezableToken.releaseOnce() (#494-516) has costly operations inside a loop:
- delete freezings[currentKey] (#504)
FreezableToken.releaseOnce() (#494-516) has costly operations inside a loop:
- delete chains[headKey] (#510)
FreezableToken.releaseOnce() (#494-516) has costly operations inside a loop:
- delete chains[currentKey] (#513)
Use a local variable to hold the loop computation result.
Additional information: link
FreezableToken.toKey(address,uint256) (#533-540) uses literals with too many digits:
- result = 0x5749534800000000000000000000000000000000000000000000000000000000 (#535)
MainToken.constructor() (#703-709) uses literals with too many digits:
- CappedToken(124000000000000000000000000) (#705)
Use: Ether suffix, Time suffix, or The scientific notation
Additional information: link
FreezableToken.toKey(address,uint256) (#533-540) is declared view but contains assembly code
Ensure the attributes of contracts compiled prior to Solidity 0.5.0 are correct.
Additional information: link
FreezableToken.toKey(address,uint256) (#533-540) uses assembly
- INLINE ASM (#536-540)
Do not use evm assembly.
Additional information: link
SafeMath.div(uint256,uint256) (#42-47) is never used and should be removed
SafeMath.mul(uint256,uint256) (#26-37) is never used and should be removed
Remove unused functions.
Additional information: link
Pragma version^0.4.23 (#1) allows old versions
solc-0.4.26 is not recommended for deployment
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
totalSupply() should be declared external:
- BEP20Basic.totalSupply() (#9)
- BasicToken.totalSupply() (#83-85)
allowance(address,address) should be declared external:
- BEP20.allowance(address,address) (#118-119)
- StandardToken.allowance(address,address) (#190-199)
approve(address,uint256) should be declared external:
- BEP20.approve(address,uint256) (#124)
- StandardToken.approve(address,uint256) (#178-182)
increaseApproval(address,uint256) should be declared external:
- StandardToken.increaseApproval(address,uint256) (#211-222)
decreaseApproval(address,uint256) should be declared external:
- StandardToken.decreaseApproval(address,uint256) (#234-249)
renounceOwnership() should be declared external:
- Ownable.renounceOwnership() (#290-293)
actualBalanceOf(address) should be declared external:
- FreezableToken.actualBalanceOf(address) (#433-435)
freezingBalanceOf(address) should be declared external:
- FreezableToken.freezingBalanceOf(address) (#437-439)
freezingCount(address) should be declared external:
- FreezableToken.freezingCount(address) (#445-451)
freezeTo(address,uint256,uint64) should be declared external:
- FreezableToken.freezeTo(address,uint256,uint64) (#476-489)
releaseAll() should be declared external:
- FreezableToken.releaseAll() (#522-531)
burn(uint256) should be declared external:
- BurnableToken.burn(uint256) (#589-591)
unpause() should be declared external:
- Pausable.unpause() (#645-648)
mintAndFreeze(address,uint256,uint64) should be declared external:
- FreezableMintableToken.mintAndFreeze(address,uint256,uint64) (#662-675)
name() should be declared external:
- MainToken.name() (#712-714)
symbol() should be declared external:
- MainToken.symbol() (#716-718)
decimals() should be declared external:
- MainToken.decimals() (#720-722)
Use the external attribute for functions never called from the contract.
Additional information: link
Parameter BasicToken.transfer(address,uint256)._to (#92) is not in mixedCase
Parameter BasicToken.transfer(address,uint256)._value (#92) is not in mixedCase
Parameter BasicToken.balanceOf(address)._owner (#107) is not in mixedCase
Parameter StandardToken.transferFrom(address,address,uint256)._from (#151) is not in mixedCase
Parameter StandardToken.transferFrom(address,address,uint256)._to (#152) is not in mixedCase
Parameter StandardToken.transferFrom(address,address,uint256)._value (#153) is not in mixedCase
Parameter StandardToken.approve(address,uint256)._spender (#178) is not in mixedCase
Parameter StandardToken.approve(address,uint256)._value (#178) is not in mixedCase
Parameter StandardToken.allowance(address,address)._owner (#191) is not in mixedCase
Parameter StandardToken.allowance(address,address)._spender (#192) is not in mixedCase
Parameter StandardToken.increaseApproval(address,uint256)._spender (#212) is not in mixedCase
Parameter StandardToken.increaseApproval(address,uint256)._addedValue (#213) is not in mixedCase
Parameter StandardToken.decreaseApproval(address,uint256)._spender (#235) is not in mixedCase
Parameter StandardToken.decreaseApproval(address,uint256)._subtractedValue (#236) is not in mixedCase
Parameter Ownable.transferOwnership(address)._newOwner (#299) is not in mixedCase
Parameter MintableToken.mint(address,uint256)._to (#345) is not in mixedCase
Parameter MintableToken.mint(address,uint256)._amount (#346) is not in mixedCase
Parameter CappedToken.mint(address,uint256)._to (#392) is not in mixedCase
Parameter CappedToken.mint(address,uint256)._amount (#393) is not in mixedCase
Parameter FreezableToken.balanceOf(address)._owner (#424) is not in mixedCase
Parameter FreezableToken.actualBalanceOf(address)._owner (#433) is not in mixedCase
Parameter FreezableToken.freezingBalanceOf(address)._owner (#437) is not in mixedCase
Parameter FreezableToken.freezingCount(address)._addr (#445) is not in mixedCase
Parameter FreezableToken.getFreezing(address,uint256)._addr (#458) is not in mixedCase
Parameter FreezableToken.getFreezing(address,uint256)._index (#458) is not in mixedCase
Parameter FreezableToken.freezeTo(address,uint256,uint64)._to (#476) is not in mixedCase
Parameter FreezableToken.freezeTo(address,uint256,uint64)._amount (#476) is not in mixedCase
Parameter FreezableToken.freezeTo(address,uint256,uint64)._until (#476) is not in mixedCase
Parameter FreezableToken.freeze(address,uint64)._to (#542) is not in mixedCase
Parameter FreezableToken.freeze(address,uint64)._until (#542) is not in mixedCase
Parameter BurnableToken.burn(uint256)._value (#589) is not in mixedCase
Parameter FreezableMintableToken.mintAndFreeze(address,uint256,uint64)._to (#662) is not in mixedCase
Parameter FreezableMintableToken.mintAndFreeze(address,uint256,uint64)._amount (#662) is not in mixedCase
Parameter FreezableMintableToken.mintAndFreeze(address,uint256,uint64)._until (#662) is not in mixedCase
Parameter MainToken.transferFrom(address,address,uint256)._from (#724) is not in mixedCase
Parameter MainToken.transferFrom(address,address,uint256)._to (#724) is not in mixedCase
Parameter MainToken.transferFrom(address,address,uint256)._value (#724) is not in mixedCase
Parameter MainToken.transfer(address,uint256)._to (#729) is not in mixedCase
Parameter MainToken.transfer(address,uint256)._value (#729) is not in mixedCase
Follow the Solidity naming convention.
Additional information: link
Token is not listed at Mobula.Finance
Additional information: link
Unable to find audit link on the website