You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Update entering-staking.adoc
Got rid of the Operator contract and added some links
* Update entering-staking.adoc
* minor fixes
* minor fix
---------
Co-authored-by: Raz Landau <[email protected]>
Co-authored-by: razlandau <[email protected]>
Copy file name to clipboardExpand all lines: components/Starknet/modules/staking/pages/entering-staking.adoc
+10-6Lines changed: 10 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,7 @@ For more information on what happens during the staking process, see xref:archit
15
15
16
16
.Prerequisites
17
17
18
-
* Validators are expected to run full nodes in preparation for the following stages of the protocol. You can use any full node implementation you choose:
18
+
* Validators are required to run full nodes in preparation for the following stages of the protocol. You can use any full node implementation you choose:
19
19
** link:https://github.com/NethermindEth/juno[Juno] by Nethermind - link:https://juno.nethermind.io/hardware-requirements/#recommended-requirements[Spec].
20
20
** link:https://github.com/eqlabs/pathfinder[Pathfinder] by EQLabs - https://github.com/eqlabs/pathfinder?tab=readme-ov-file#hardware-requirements[Spec].
21
21
** link:https://github.com/madara-alliance/madara[Madara] by Madara Alliance - link:https://docs.madara.build/get-started/requirements[Spec].
@@ -24,17 +24,21 @@ For more information on what happens during the staking process, see xref:archit
24
24
25
25
.Procedure
26
26
27
-
. Pre-approve the STRK ERC20 contract for the transfer of tokens from your address to the staking contract (and *not* the operator contract):
27
+
. Pre-approve the STRK ERC20 contract for the transfer of tokens from your address to the staking contract:
28
28
+
29
-
* Using a Starknet block explorer, navigate to the STRK ERC20 contract (link:https://starkscan.co/token/0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d[Starkscan], link:https://voyager.online/contract/0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d[Voyager]).
30
-
* Approve the staking contract to transfer the specified amount of STRK tokens on your behalf.
31
-
. Using a Starknet block explorer, navigate to the operator contract.
29
+
.. Using a Starknet block explorer, navigate to the STRK ERC20 contract (link:https://starkscan.co/token/0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d[Starkscan], link:https://voyager.online/contract/0x04718f5a0fc34cc1af16a1cdee98ffb20c31f5cd61d6ab07201858f4287c938d[Voyager]).
30
+
.. In the contract interface, locate and select the `approve` function.
31
+
.. Enter the following parameters:
32
+
* In *`spender`*, enter your address.
33
+
* In *`amount`*, enter the number of STRK tokens you want to stake. Note: STRK has 18 decimals.
34
+
.. Submit the transaction to execute the pre-approval.
35
+
. Using a Starknet block explorer, navigate to the Staking contract (The contract addresses can be found xref:overview.adoc#contract-addresses[here]).
32
36
. In the contract interface, locate and select the `stake` function.
33
37
. Enter the following parameters:
34
38
+
35
39
* In *`reward_address`*, enter the address where the rewards will be sent.
36
40
* In *`operational_address`*, enter the operational address associated with this stake.
37
-
* In *`amount`*, enter the number of STRK tokens you want to stake.
41
+
* In *`amount`*, enter the number of STRK tokens you want to stake. Note: STRK has 18 decimals.
38
42
* In *`pooling_enabled`*, enter `true` if you wish to enable delegation pooling, otherwise enter `false`.
39
43
* In *`commission`*, enter the commission rate for any delegated staking. The rate should be entered as a percentage with precision, where 10000 represents 100%. For example, to set a 5% commission, you would enter 500.
40
44
. Submit the transaction to execute the staking operation.
0 commit comments