solana_sdk::stake::tools

Function get_minimum_delegation

source
pub fn get_minimum_delegation() -> Result<u64, ProgramError>
Expand description

Helper function for programs to call GetMinimumDelegation and then fetch the return data

This fn handles performing the CPI to call the GetMinimumDelegation function, and then calls get_return_data() to fetch the return data.