Skip to content

Instantly share code, notes, and snippets.

View mobilipia's full-sized avatar

Olabode Adebayo mobilipia

View GitHub Profile
pragma solidity >=0.4.22 <0.6.0;
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
contract ExchangeStorage is Ownable {
/**
* @dev The minimum fee rate that the maker will receive
* Note: 20% = 20 * 10^16
*/
pragma solidity >=0.4.22 <0.6.0;
import "openzeppelin-solidity/contracts/token/ERC20/SafeERC20.sol";
import "openzeppelin-solidity/contracts/math/SafeMath.sol";
import "openzeppelin-solidity/contracts/ownership/Ownable.sol";
import "./ExchangeStorage.sol";
import "./interfaces/IExchangeUpgradability.sol";
contract ExchangeUpgradability is Ownable, ExchangeStorage {
pragma solidity >=0.4.22 <0.6.0;
pragma experimental ABIEncoderV2;
import "./Exchange.sol";
contract ExchangeBatchTrade is Exchange {
/**
* @dev Cancel an array of orders if msg.sender is the order signer.
*/

Weidex v2 Security Audit Report

1. Summary

This is an audit of the Weidex v2 smart contract. The audit focused on the vulnerability of the contract to attacks as well as ability of a third party to exploit such vulnerabilities.

2. In scope

  1. contracts/utils/LibSignatureValidator.sol
  2. contracts/exchange/ExchangeUpgradability.sol
  3. contracts/exchange/ExchangeStorage.sol