Skip to content

Commit b63cdf3

Browse files
committed
Update abstract to clarify the purpose of the integration
1 parent 360f063 commit b63cdf3

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

IPs/RSKIP502.md

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,11 @@ description:
2222

2323
## Abstract
2424

25-
This RSKIP proposes the integration of the Union Bridge [[1]](#references) with the existing PowPeg to enable secure RBTC transfers between the two systems. The PowPeg will facilitate the transfer of RBTC to the Union Bridge, with the addition of a locking cap to mitigate risks by limiting the total amount of RBTC that can be transferred. The integration will extend the current Bridge contract's functionality, incorporating new methods for managing transfers, updating the Union Bridge contract address, and adjusting the locking cap. These changes will ensure that the PowPeg remains secure and robust while supporting the ongoing development of the Union Bridge. Special considerations have been made to allow seamless testing and updates during the Union Bridge's development phase, with restrictions placed on mainnet interactions to avoid unauthorized changes.
25+
This RSKIP proposes the integration of the Union Bridge [[1]](#references) with the existing PowPeg to enable secure RBTC transfers between the two systems. The PowPeg will facilitate the transfer of RBTC to the Union Bridge, with the addition of a locking cap to mitigate risks by limiting the total amount of RBTC that can be transferred. The purpose of this integration is to release the corresponding RBTC to a user who performed a peg-in to Rootstock via the Union Bridge, and vice-versa for a peg-out operation.
26+
27+
The integration will extend the current Bridge contract's functionality, incorporating new methods for managing transfers, updating the Union Bridge contract address, and adjusting the locking cap. These changes will ensure that the PowPeg remains secure and robust while supporting the ongoing development of the Union Bridge.
28+
29+
Special considerations have been made to allow seamless testing and updates during the Union Bridge's development phase, with restrictions placed on mainnet interactions to avoid unauthorized changes.
2630

2731
## Motivation
2832

@@ -110,6 +114,18 @@ function increaseUnionBridgeLockingCap(uint256 newCap) public returns (int256);
110114
- -2: Invalid value – The specified cap value is invalid (e.g., less than the current cap or excessive).
111115
- -10: Generic error – A non-specific error occurred while processing the request.
112116

117+
**Event**
118+
119+
To ensure the update is visible to external systems and can be logged for auditing purposes, an event will be emitted on every successful cap increase.
120+
121+
```
122+
event union_bridge_locking_cap_increased(
123+
address indexed caller,
124+
uint256 previousCap,
125+
uint256 newCap
126+
);
127+
```
128+
113129
### 5. Method for Transferring RBTC to the Union Bridge
114130

115131
A new method will be added to the Bridge contract to allow the transfer of RBTC to the Union Bridge. The method will have the following restrictions:

0 commit comments

Comments
 (0)