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
767af862
Unverified
Commit
767af862
authored
11 months ago
by
Liam Aharon
Browse files
Options
Downloads
Patches
Plain Diff
address comment
parent
2ec60393
Branches
gh-readonly-queue/master/pr-4066-30c58fa22ad9fc6630e07e43ee2307675462995a
Branches containing commit
No related merge requests found
Pipeline
#465056
canceled with stages
in 5 minutes and 31 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
substrate/frame/asset-rewards/src/lib.rs
+3
-2
3 additions, 2 deletions
substrate/frame/asset-rewards/src/lib.rs
with
3 additions
and
2 deletions
substrate/frame/asset-rewards/src/lib.rs
+
3
−
2
View file @
767af862
...
...
@@ -551,11 +551,12 @@ pub mod pallet {
Error
::
<
T
>
::
ExpiryBlockMustBeInTheFuture
);
// Always start by updating the pool rewards.
let
pool_info
=
Pools
::
<
T
>
::
get
(
pool_id
)
.ok_or
(
Error
::
<
T
>
::
NonExistentPool
)
?
;
ensure!
(
pool_info
.admin
==
caller
,
BadOrigin
);
// Always start by updating the pool rewards.
let
mut
pool_info
=
Self
::
update_pool_rewards
(
pool_info
)
?
;
ensure!
(
pool_info
.admin
==
caller
,
BadOrigin
);
pool_info
.expiry_block
=
new_expiry_block
;
Pools
::
<
T
>
::
insert
(
pool_id
,
pool_info
);
...
...
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