Skip to content

Commit

Permalink
nits
Browse files Browse the repository at this point in the history
  • Loading branch information
0x0aa0 committed Dec 12, 2024
1 parent 66c9caa commit e59457a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions contracts/src/interfaces/IPaymentVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ interface IPaymentVault {
uint64 symbolsPerSecond; // Number of symbols reserved per second
uint64 startTimestamp; // timestamp of epoch where reservation begins
uint64 endTimestamp; // timestamp of epoch where reservation ends
bytes quorumNumbers; // quorum numbers in an ordered bytes array
bytes quorumSplits; // quorum splits in a bytes array that correspond to the quorum numbers
bytes quorumNumbers; // quorum numbers in an ordered bytes array
bytes quorumSplits; // quorum splits in a bytes array that correspond to the quorum numbers
}

struct OnDemandPayment {
Expand Down
4 changes: 2 additions & 2 deletions contracts/src/payments/PaymentVault.sol
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ contract PaymentVault is OwnableUpgradeable, PaymentVaultStorage {
address _account,
Reservation memory _reservation
) external onlyOwner {
_checkQuorumSplit(_reservation.quorumNumbers, _reservation.quorumSplits);
_checkQuorumSplit(_reservation.quorumNumbers, _reservation.quorumSplits);
require(_reservation.endTimestamp > _reservation.startTimestamp, "end timestamp must be greater than start timestamp");
reservations[_account] = _reservation;
emit ReservationUpdated(_account, _reservation);
Expand All @@ -64,7 +64,7 @@ contract PaymentVault is OwnableUpgradeable, PaymentVaultStorage {
* @param _account is the address to deposit the funds for
*/
function depositOnDemand(address _account) external payable {
_deposit(_account, msg.value);
_deposit(_account, msg.value);
}

function setPriceParams(
Expand Down

0 comments on commit e59457a

Please sign in to comment.