package Ġjp . co . sor am its u . feature _ staking _ impl . presentation . common . validation Ċ Ċ import Ġjp . co . sor am its u . common . base . Title And Message Ċ import Ġjp . co . sor am its u . common . resources . ResourceManager Ċ import Ġjp . co . sor am its u . feature _ staking _ impl . R Ċ import Ġjp . co . sor am its u . feature _ staking _ impl . domain . valid ations . setup . Setup St aking Payload Ċ import Ġjp . co . sor am its u . feature _ staking _ impl . domain . valid ations . setup . Setup St aking Validation Failure Ċ import Ġjp . co . sor am its u . feature _ wallet _ api . presentation . format ters . format Token Amount Ċ Ċ fun Ġst aking Validation Failure ( ĊĠĠĠ Ġpayload : ĠSetup St aking Payload , ĊĠĠĠ Ġreason : ĠSetup St aking Validation Failure , ĊĠĠĠ Ġresource Manager : ĠResourceManager , Ċ ): ĠTitle And Message Ġ{ ĊĠĠĠ Ġval Ġ( title , Ġmessage ) Ġ= Ġwith ( resource Manager ) Ġ{ ĊĠĠĠĠĠĠĠ Ġwhen Ġ( reason ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ ĠSetup St aking Validation Failure . Cannot Pay Fee Ġ-> Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠgetString ( R . string . common _ error _ general _ title ) Ġto ĠgetString ( R . string . choose _ amount _ error _ too _ big ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠĠĠĠĠ Ġis ĠSetup St aking Validation Failure . Too Small Amount Ġ-> Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġval Ġformatted Threshold Ġ= Ġreason . threshold . format Token Amount ( payload . asset . token . configuration ) ĊĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠgetString ( R . string . common _ amount _ low ) Ġto ĠgetString ( R . string . staking _ setup _ amount _ too _ low , Ġformatted Threshold ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĊĠĠĠĠĠĠĠĠĠĠĠ ĠSetup St aking Validation Failure . Max Nom in ators Reached Ġ-> Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ ĠgetString ( R . string . staking _ max _ nom in ators _ re ached _ title ) Ġto ĠgetString ( R . string . staking _ max _ nom in ators _ re ached _ message ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġreturn Ġtitle Ġto Ġmessage Ċ } Ċ