Skip to content
Snippets Groups Projects
Unverified Commit cd77fb3b authored by Liam Aharon's avatar Liam Aharon
Browse files

update doc

parent f903ea2e
No related merge requests found
Pipeline #465067 failed with stages
in 1 hour, 24 minutes, and 6 seconds
......@@ -53,7 +53,7 @@
//! ## Implementation Notes
//!
//! Internal logic functions such as `update_pool_and_staker_rewards` where deliberately written
//! as pure functions without side-effects.
//! without side-effects.
//!
//! Storage interaction such as reads and writes are instead all performed in the top level
//! pallet Call method, which while slightly more verbose, makes it easier to understand the
......@@ -631,8 +631,8 @@ pub mod pallet {
///
/// Returns the updated pool and staker info.
///
/// NOTE: this is a pure function without any side-effects. Side-effects such as storage
/// modifications are the resopnsibility of the caller.
/// NOTE: this function has no side-effects. Side-effects such as storage modifications are
/// the resopnsibility of the caller.
pub fn update_pool_and_staker_rewards(
pool_info: &PoolInfoFor<T>,
staker_info: &PoolStakerInfo<T::Balance>,
......@@ -651,8 +651,8 @@ pub mod pallet {
///
/// Returns the updated pool and staker info.
///
/// NOTE: this is a pure function without any side-effects. Side-effects such as storage
/// modifications are the resopnsibility of the caller.
/// NOTE: this function has no side-effects. Side-effects such as storage modifications are
/// the resopnsibility of the caller.
pub fn update_pool_rewards(
pool_info: &PoolInfoFor<T>,
) -> Result<PoolInfoFor<T>, DispatchError> {
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment