Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/interfaces/IFeeAMM.sol
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,17 @@ interface IFeeAMM {

function getPoolId(address userToken, address validatorToken) external pure returns (bytes32);

function liquidityBalances(bytes32, address) external view returns (uint256);
function liquidityBalances(bytes32 poolId, address user) external view returns (uint256);

function mint(address userToken, address validatorToken, uint256 amountValidatorToken, address to)
external
returns (uint256 liquidity);

function pools(bytes32) external view returns (uint128 reserveUserToken, uint128 reserveValidatorToken);
function pools(bytes32 poolId) external view returns (uint128 reserveUserToken, uint128 reserveValidatorToken);

function rebalanceSwap(address userToken, address validatorToken, uint256 amountOut, address to)
external
returns (uint256 amountIn);

function totalSupply(bytes32) external view returns (uint256);
function totalSupply(bytes32 poolId) external view returns (uint256);
}
4 changes: 2 additions & 2 deletions src/interfaces/IStablecoinDEX.sol
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,9 @@ interface IStablecoinDEX {
view
returns (address base, address quote, int16 bestBidTick, int16 bestAskTick);

function bookIndexForKey(bytes32 key) external view returns (bool exists, uint32 index);
function bookIndexForKey(bytes32 bookKey) external view returns (bool exists, uint32 index);

function bookKeyForIndex(uint32 index) external view returns (bytes32 key);
function bookKeyForIndex(uint32 index) external view returns (bytes32 bookKey);

function cancel(uint128 orderId) external;

Expand Down
4 changes: 2 additions & 2 deletions src/interfaces/ITIP20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ interface ITIP20 is ITIP20RolesAuthErr {

function setNextQuoteToken(ITIP20 newQuoteToken) external;

function setRewardRecipient(address newRewardRecipient) external;
function setRewardRecipient(address recipient) external;

function setSupplyCap(uint256 newSupplyCap) external;

Expand Down Expand Up @@ -233,7 +233,7 @@ interface ITIP20 is ITIP20RolesAuthErr {
/// @notice Unpauses the contract, allowing transfers and other operations to resume.
function unpause() external;

function userRewardInfo(address)
function userRewardInfo(address account)
external
view
returns (address rewardRecipient, uint256 rewardPerToken, uint256 rewardBalance);
Expand Down
8 changes: 4 additions & 4 deletions src/interfaces/IValidatorConfig.sol
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ interface IValidatorConfig {
/// @param publicKey The validator's communication public key
/// @param active Whether the validator is active in consensus
/// @param index The validator's index in the validators array
/// @param validatorAddress The validator's address
/// @param validator The validator's address
/// @param inboundAddress Address where other validators can connect to this validator (format: `<hostname|ip>:<port>`)
/// @param outboundAddress IP address for firewall whitelisting by other validators (format: `<ip>:<port>`)
struct Validator {
Expand All @@ -56,17 +56,17 @@ interface IValidatorConfig {
/// @return publicKey The validator's communication public key
/// @return active Whether the validator is active
/// @return index The validator's index
/// @return addr The validator's address
/// @return validatorAddress The validator's address
/// @return inboundAddress The validator's inbound address
/// @return outboundAddress The validator's outbound address
function validators(address validatorAddress)
function validators(address validator)
external
view
returns (
bytes32 publicKey,
bool active,
uint64 index,
address addr,
address validatorAddress,
string memory inboundAddress,
string memory outboundAddress
);
Expand Down