added linting to the contracts

This commit is contained in:
Daniel Pyrathon
2020-03-02 10:48:52 -08:00
parent 8186d6277e
commit b0fd78d68d
2 changed files with 6 additions and 9 deletions

View File

@@ -2,22 +2,20 @@ pragma solidity ^0.5.9;
pragma experimental ABIEncoderV2;
contract DummyLiquidityProvider
{
constructor()
public
// solhint-disable-next-line no-empty-blocks
{}
/// @dev Quotes the amount of `makerToken` that would be obtained by
/// selling `sellAmount` of `takerToken`.
/// @param takerToken Address of the taker token (what to sell).
/// @param makerToken Address of the maker token (what to buy).
/// @param sellAmount Amount of `takerToken` to sell.
/// @return makerTokenAmount Amount of `makerToken` that would be obtained.
function getSellQuote(
address takerToken,
address makerToken,
address, /* takerToken */
address, /* makerToken */
uint256 sellAmount
)
external
@@ -28,13 +26,11 @@ contract DummyLiquidityProvider
/// @dev Quotes the amount of `takerToken` that would need to be sold in
/// order to obtain `buyAmount` of `makerToken`.
/// @param takerToken Address of the taker token (what to sell).
/// @param makerToken Address of the maker token (what to buy).
/// @param buyAmount Amount of `makerToken` to buy.
/// @return takerTokenAmount Amount of `takerToken` that would need to be sold.
function getBuyQuote(
address takerToken,
address makerToken,
address, /* takerToken */
address, /* makerToken */
uint256 buyAmount
)
external

View File

@@ -8,6 +8,7 @@ contract DummyLiquidityProviderRegistry
constructor()
public
// solhint-disable-next-line no-empty-blocks
{}
mapping (address => mapping (address => address)) internal _gAddressBook;