Skip to content
Merged
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
10 changes: 10 additions & 0 deletions src/lib/B20FactoryLib.sol
Original file line number Diff line number Diff line change
Expand Up @@ -345,6 +345,16 @@ library B20FactoryLib {
return abi.encodeCall(IB20Security.updateSecurityIdentifier, (identifierType, value));
}

/// @notice Encodes a call to `IB20Security.updateShareRatio(newShareRatio)`
/// as a bootstrap initCall.
///
/// @param newShareRatio New share ratio.
///
/// @return The ABI-encoded initCall blob.
function encodeUpdateShareRatio(uint256 newShareRatio) internal pure returns (bytes memory) {
return abi.encodeCall(IB20Security.updateShareRatio, (newShareRatio));
}

/*//////////////////////////////////////////////////////////////
INIT-CALL ARRAY BUILDERS
//////////////////////////////////////////////////////////////*/
Expand Down
Loading