diff --git a/staking-pool-factory/README.md b/staking-pool-factory/README.md index eec98238..b11c755e 100644 --- a/staking-pool-factory/README.md +++ b/staking-pool-factory/README.md @@ -61,3 +61,18 @@ pub fn on_staking_pool_create( predecessor_account_id: AccountId, ) -> PromiseOrValue; ``` + +### Usage + +Contract initialization: +```bash +near call new '{"staking_pool_whitelist_account_id": }' +``` +where `` it the account id of the whitelist contract that this factory +is associated with. + +Staking pool creation: +```bash +near call create_staking_pool '{"staking_pool_id": , "owner_id": , "stake_public_key": , "reward_fee_fraction": }' +``` +Here `reward_fee_fraction` is an object like `{"numerator": 10, "denominator": 100}`.