Skip to content

Commit

Permalink
Merge pull request #427 from rsksmart/release-events-fix
Browse files Browse the repository at this point in the history
Express amount value as weis in release related events
  • Loading branch information
aeidelman authored Jun 27, 2024
2 parents 6e9e3d0 + 6090909 commit 884e19b
Show file tree
Hide file tree
Showing 2 changed files with 46 additions and 0 deletions.
45 changes: 45 additions & 0 deletions IPs/RSKIP427.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
---
rskip: 427
title: Express the amount value in wei for peg-out related events
created: 17-APR-24
author: MI
purpose: Usa
layer: Core
complexity: 1
status: Draft
description:
---

|RSKIP |427 |
| :------------ |:-------------|
|**Title** |Express the amount value in wei for peg-out related events |
|**Created** |17-APR-24 |
|**Author** |MI |
|**Purpose** |Usa |
|**Layer** |Core |
|**Complexity** |1 |
|**Status** |Draft |

## Abstract

This RSKIP proposes a change in the unit used in `amount` field of `release_request_received` and `release_request_rejected` Bridge events. The proposal is to express the amount in **weis** instead of **satoshis**.

## Motivation

According to the original specification [1] `release_request_received` and `release_request_rejected` Bridge events should express the _amount_ field in weis.

## Specification

When `release_request_received` or `release_request_rejected` Bridge events are emitted, the _amount_ field should have the value in weis that the user sent to the Bridge. The change only affects the value used when the events are emitted, signatures remain unchanged.

## Backward Compatibility

This change is a hard fork and therefore all full nodes must be updated.

## References

[1] [RSKIP185](https://github.com/rsksmart/RSKIPs/blob/master/IPs/RSKIP185.md)

### Copyright

Copyright and related rights waived via [CC0](https://creativecommons.org/publicdomain/zero/1.0/).
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,7 @@ You can find an easily browseable version of this information [here](https://ips
| 415 |[Fix pegnatories address derivation from public keys](IPs/RSKIP415.md)| 30-JAN-24 | MI | Usa | Core | 1 | Adopted |
| 417 |[Avoid transactions to be reverted when Bridge method calls from smart contracts return an empty response](IPs/RSKIP417.md)| 28-FEB-24 | MI | Usa | Core | 1 | Adopted |
| 419 |[Powpeg Spendability Validation Protocol](IPs/RSKIP419.md)| 31-AUG-23 | JD, JZ | Sec | Core | 2 | Draft |
| 427 |[Express the amount value in wei for peg-out related events](IPs/RSKIP427.md)| 17-APR-24 | MI | Usa | Core | 1 | Draft |

(*) Under evaluation to be implemented in the next reference client release

Expand Down

0 comments on commit 884e19b

Please sign in to comment.