File tree 2 files changed +6
-6
lines changed
src/plugins/stake-plugins/generic 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ import {
10
10
StakePositionRequest
11
11
} from '../types'
12
12
import { CardanoPooledKilnAdapterConfig , makeCardanoKilnAdapter } from './policyAdapters/CardanoKilnAdaptor'
13
- import { CoreumNativeStakeKitAdapterConfig , makeSkateKitAdapter } from './policyAdapters/CoreumStakeKitAdaptor'
13
+ import { CoreumNativeStakeKitAdapterConfig , makeStakeKitAdapter } from './policyAdapters/CoreumStakeKitAdaptor'
14
14
import { EthereumPooledKilnAdapterConfig , makeEthereumKilnAdapter } from './policyAdapters/EthereumKilnAdaptor'
15
15
import { GlifInfinityPoolAdapterConfig , makeGlifInfinityPoolAdapter } from './policyAdapters/GlifInfinityPoolAdapter'
16
16
import { makeTarotPoolAdapter , TarotPoolAdapterConfig } from './policyAdapters/TarotPoolAdaptor'
@@ -71,7 +71,7 @@ const makePolicyAdapter = (policyInfo: StakePolicyConfig<StakeAdapterConfig>): S
71
71
case 'cardano-pooled-kiln' :
72
72
return makeCardanoKilnAdapter ( policyInfo as StakePolicyConfig < CardanoPooledKilnAdapterConfig > )
73
73
case 'coreum-native-stake-kit' :
74
- return makeSkateKitAdapter ( policyInfo as StakePolicyConfig < CoreumNativeStakeKitAdapterConfig > )
74
+ return makeStakeKitAdapter ( policyInfo as StakePolicyConfig < CoreumNativeStakeKitAdapterConfig > )
75
75
case 'ethereum-pooled-kiln' :
76
76
return makeEthereumKilnAdapter ( policyInfo as StakePolicyConfig < EthereumPooledKilnAdapterConfig > )
77
77
case 'glif-infinity-pool' :
Original file line number Diff line number Diff line change @@ -17,12 +17,12 @@ export interface CoreumNativeStakeKitAdapterConfig {
17
17
preferredValidatorName : string
18
18
}
19
19
20
- export const makeSkateKitAdapter = ( policyConfig : StakePolicyConfig < CoreumNativeStakeKitAdapterConfig > ) : StakePolicyAdapter => {
21
- if ( policyConfig . stakeAssets . length > 1 ) throw new Error ( `Staking more than one assets is not supported for CoreumSkateKitAdapter ` )
22
- if ( policyConfig . rewardAssets . length > 1 ) throw new Error ( `Claim of more than one assets is not supported for CoreumSkateKitAdapter ` )
20
+ export const makeStakeKitAdapter = ( policyConfig : StakePolicyConfig < CoreumNativeStakeKitAdapterConfig > ) : StakePolicyAdapter => {
21
+ if ( policyConfig . stakeAssets . length > 1 ) throw new Error ( `Staking more than one assets is not supported for CoreumStakeKitAdapter ` )
22
+ if ( policyConfig . rewardAssets . length > 1 ) throw new Error ( `Claim of more than one assets is not supported for CoreumStakeKitAdapter ` )
23
23
24
24
if ( policyConfig . stakeAssets [ 0 ] . currencyCode !== policyConfig . rewardAssets [ 0 ] . currencyCode )
25
- throw new Error ( `Stake and claim of different assets is not supported for CoreumSkateKitAdapter ` )
25
+ throw new Error ( `Stake and claim of different assets is not supported for CoreumStakeKitAdapter ` )
26
26
27
27
// Metadata constants:
28
28
const metadataName = 'Coreum Native Staking'
You can’t perform that action at this time.
0 commit comments