Skip to content

Commit

Permalink
Standardize on sentence case capitalization for subheaders; Little do…
Browse files Browse the repository at this point in the history
…c tweaks
  • Loading branch information
neodaoist committed Dec 16, 2022
1 parent fc7b0b3 commit 74fb506
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 15 deletions.
8 changes: 4 additions & 4 deletions src/OptionSettlementEngine.sol
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ contract OptionSettlementEngine is ERC1155, IOptionSettlementEngine {
//////////////////////////////////////////////////////////////*/

//
// Option Information
// Option information
//

/// @inheritdoc IOptionSettlementEngine
Expand Down Expand Up @@ -275,7 +275,7 @@ contract OptionSettlementEngine is ERC1155, IOptionSettlementEngine {
}

//
// Token Information
// Token information
//

/// @inheritdoc IOptionSettlementEngine
Expand All @@ -295,7 +295,7 @@ contract OptionSettlementEngine is ERC1155, IOptionSettlementEngine {
}
}

/// @notice Returns the URI for a given tokenId.
/// @returns the URI for a given tokenId.
function uri(uint256 tokenId) public view virtual override returns (string memory) {
Option memory optionInfo = optionTypeStates[uint160(tokenId >> OPTION_KEY_PADDING)].option;

Expand Down Expand Up @@ -325,7 +325,7 @@ contract OptionSettlementEngine is ERC1155, IOptionSettlementEngine {
//////////////////////////////////////////////////////////////*/

//
// Write Options/Claims
// Write Options
//

/// @inheritdoc IOptionSettlementEngine
Expand Down
26 changes: 15 additions & 11 deletions src/interfaces/IOptionSettlementEngine.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ interface IOptionSettlementEngine {
//////////////////////////////////////////////////////////////*/

//
// Write/Redeem Events
// Write/Redeem events
//

/**
Expand Down Expand Up @@ -50,7 +50,7 @@ interface IOptionSettlementEngine {
);

//
// Exercise Events
// Exercise events
//

/**
Expand All @@ -71,7 +71,7 @@ interface IOptionSettlementEngine {
event OptionsWritten(uint256 indexed optionId, address indexed writer, uint256 indexed claimId, uint112 amount);

//
// Fee Events
// Fee events
//

/**
Expand Down Expand Up @@ -102,7 +102,9 @@ interface IOptionSettlementEngine {
*/
event FeeSwitchUpdated(address feeTo, bool enabled);

// Access Control Events
//
// Access control events
//

/**
* @notice Emitted when feeTo address is updated.
Expand All @@ -121,7 +123,7 @@ interface IOptionSettlementEngine {
//////////////////////////////////////////////////////////////*/

//
// Access Control Errors
// Access control errors
//

/**
Expand All @@ -131,7 +133,9 @@ interface IOptionSettlementEngine {
*/
error AccessControlViolation(address accessor, address permissioned);

// Input Errors
//
// Input errors
//

/// @notice The amount of options contracts written must be greater than zero.
error AmountWrittenCannotBeZero();
Expand Down Expand Up @@ -286,11 +290,11 @@ interface IOptionSettlementEngine {
}

/*//////////////////////////////////////////////////////////////
// Accessors
// Views
//////////////////////////////////////////////////////////////*/

//
// Option Information
// Option information
//

/**
Expand All @@ -315,7 +319,7 @@ interface IOptionSettlementEngine {
function underlying(uint256 tokenId) external view returns (Underlying memory position);

//
// Token Information
// Token information
//

/**
Expand Down Expand Up @@ -345,7 +349,7 @@ interface IOptionSettlementEngine {
function tokenURIGenerator() external view returns (ITokenURIGenerator uriGenerator);

//
// Fee Information
// Fee information
//

/**
Expand Down Expand Up @@ -373,7 +377,7 @@ interface IOptionSettlementEngine {
function feeTo() external view returns (address);

/*//////////////////////////////////////////////////////////////
// Write Options/Claims
// Write Options
//////////////////////////////////////////////////////////////*/

/**
Expand Down

0 comments on commit 74fb506

Please sign in to comment.