Skip to content

Commit

Permalink
Clarify documentation for updateVoucherTypeDescription to indicate in…
Browse files Browse the repository at this point in the history
…tended feature per Halborn audit
  • Loading branch information
Le-Caignec committed Jan 3, 2025
1 parent 8675176 commit 52180cb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions contracts/VoucherHub.sol
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ contract VoucherHub is
* This function only updates the duration for newly minted vouchers and not the existing ones to provide
* guarantees regarding the expiration of vouchers. When a voucher is delivered, its credits should not expire
* before the original expiration date.
* This is not a bug as mentioned in audit of Halborn (HAL-01) but an intended feature.
*/
function updateVoucherTypeDescription(
uint256 id,
Expand Down
1 change: 1 addition & 0 deletions docs/VoucherHub.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ function updateVoucherTypeDescription(uint256 id, string description) external
This function only updates the duration for newly minted vouchers and not the existing ones to provide
guarantees regarding the expiration of vouchers. When a voucher is delivered, its credits should not expire
before the original expiration date.
This is not a bug as mentioned in audit of Halborn (HAL-01) but an intended feature.

### updateVoucherTypeDuration

Expand Down

0 comments on commit 52180cb

Please sign in to comment.