@evvm/testnet-contracts 2.0.1 → 2.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -59,7 +59,7 @@ abstract contract StakingServiceHooks {
|
|
|
59
59
|
* @dev CRITICAL: This function ensures atomicity - if any step fails, the entire transaction reverts
|
|
60
60
|
* preventing the loss of Principal Tokens that could occur with manual step-by-step execution
|
|
61
61
|
*/
|
|
62
|
-
function makeStakeService(uint256 amountToStake)
|
|
62
|
+
function makeStakeService(uint256 amountToStake) internal {
|
|
63
63
|
Staking(stakingHookAddress).prepareServiceStaking(amountToStake);
|
|
64
64
|
Evvm(evvmHookAddress).caPay(
|
|
65
65
|
address(stakingHookAddress),
|
|
@@ -84,7 +84,7 @@ abstract contract StakingServiceHooks {
|
|
|
84
84
|
*
|
|
85
85
|
* @dev Unstaking is subject to the same time locks as regular user unstaking
|
|
86
86
|
*/
|
|
87
|
-
function makeUnstakeService(uint256 amountToUnstake)
|
|
87
|
+
function makeUnstakeService(uint256 amountToUnstake) internal {
|
|
88
88
|
Staking(stakingHookAddress).serviceUnstaking(amountToUnstake);
|
|
89
89
|
}
|
|
90
90
|
|
package/package.json
CHANGED