Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
polkadot-sdk
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
parity
Mirrored projects
polkadot-sdk
Commits
cd77fb3b
Unverified
Commit
cd77fb3b
authored
11 months ago
by
Liam Aharon
Browse files
Options
Downloads
Patches
Plain Diff
update doc
parent
f903ea2e
Branches
gh-readonly-queue/master/pr-4066-30c58fa22ad9fc6630e07e43ee2307675462995a
Branches containing commit
No related merge requests found
Pipeline
#465067
failed with stages
in 1 hour, 24 minutes, and 6 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/frame/asset-rewards/src/lib.rs
+5
-5
5 additions, 5 deletions
substrate/frame/asset-rewards/src/lib.rs
with
5 additions
and
5 deletions
substrate/frame/asset-rewards/src/lib.rs
+
5
−
5
View file @
cd77fb3b
...
...
@@ -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
>
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment