Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
Show all changes
32 commits
Select commit Hold shift + click to select a range
710bab9
Adds StakingAPI_nominations_quota and NominationPoolsApi_balanceToPoi…
gpestana Jan 10, 2023
11c4f61
Adds balance param to api_nominations_quota
gpestana Jan 11, 2023
3268088
Update frame/nomination-pools/src/lib.rs
gpestana Jan 13, 2023
ca2ed2f
Update frame/nomination-pools/src/lib.rs
gpestana Jan 13, 2023
a31efce
Addresses comments - returns zero instead of error in runtime api
gpestana Jan 13, 2023
5dfae89
Update frame/staking/runtime-api/src/lib.rs
gpestana Jan 14, 2023
9e9e793
Update frame/staking/runtime-api/src/lib.rs
gpestana Jan 14, 2023
0a8059a
Addresses PR comments
gpestana Jan 14, 2023
8b848fd
Update frame/nomination-pools/runtime-api/Cargo.toml
gpestana Feb 7, 2023
825f312
Fixes points_to_balance logic; adds tests
gpestana Feb 7, 2023
62aa1a2
test comment fix
gpestana Feb 7, 2023
05b238e
Merge remote-tracking branch 'origin/master' into gpestana/13069-nomi…
Feb 7, 2023
137a355
Update frame/nomination-pools/runtime-api/src/lib.rs
gpestana Feb 14, 2023
cfea646
Update frame/nomination-pools/runtime-api/src/lib.rs
gpestana Feb 14, 2023
bf944a4
Fix block pruning (#13323)
arkpar Feb 7, 2023
e8d7590
Referendum proposal's metadata (#12568)
muharem Feb 8, 2023
5164848
Improve test coverage of the `Notifications` protocol (#13033)
altonen Feb 8, 2023
b7d764c
refactors runtime API logic to own pallet impl block
gpestana Feb 14, 2023
cc3ad3a
Merge remote-tracking branch 'origin/master' into gpestana/13069-nomi…
Feb 14, 2023
6a54821
removes unrelated changes
gpestana Feb 14, 2023
d6ec3a9
Merge branch 'master' into gpestana/13069-nomination-staking-rpc-methods
gpestana Feb 16, 2023
3f16777
Fixes cargo doc comments lint
gpestana Feb 16, 2023
8422864
fixes node cargo
gpestana Feb 16, 2023
9c1b1fc
Merge branch 'master' into gpestana/13069-nomination-staking-rpc-methods
gpestana Feb 16, 2023
98176d0
Merge remote-tracking branch 'origin/master' into gpestana/13069-nomi…
Feb 17, 2023
b801518
Merge remote-tracking branch 'origin/master' into gpestana/13069-nomi…
Feb 17, 2023
eb28218
fixes comment
gpestana Feb 20, 2023
28b1434
Merge remote-tracking branch 'origin/master' into gpestana/13069-nomi…
Feb 20, 2023
3afd3f7
Merge remote-tracking branch 'origin/master' into gpestana/13069-nomi…
Feb 20, 2023
a1a5c3c
restart ci
gpestana Feb 20, 2023
7c23d17
restart ci
gpestana Feb 21, 2023
4492a2d
restart ci
gpestana Feb 21, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update frame/nomination-pools/src/lib.rs
Co-authored-by: Anton <[email protected]>
  • Loading branch information
gpestana and melekes authored Jan 13, 2023
commit ca2ed2f8839f5930e1d5d1f808dc9fd3df66e39b
2 changes: 1 addition & 1 deletion frame/nomination-pools/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2162,7 +2162,7 @@ impl<T: Config> Pallet<T> {

/// Returns the points to balance conversion for a specified pool.
///
/// If the pool ID does not exist, return an error. Used by runtime API.
/// If the pool ID does not exist, it returns an error. Used by runtime API.
pub fn api_points_to_balance(pool_id: u32) -> Result<BalanceOf<T>, ()> {
if let Some(pool) = BondedPool::<T>::get(pool_id) {
Ok(pool.points_to_balance(pool.points))
Expand Down