Skip to content

Commit

Permalink
build version update, adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
anyxem committed Jul 24, 2024
1 parent 81e3dfa commit 26cd557
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 8 deletions.
2 changes: 0 additions & 2 deletions class/wallets/mintlayer-wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -570,8 +570,6 @@ export class MintLayerWallet extends AbstractHDWallet {
return acc;
}, {});

console.log('poolsData', poolsData);

const mergedDelegations = delegations.map((delegation, index) => {
return {
...delegation,
Expand Down
4 changes: 2 additions & 2 deletions ios/BlueWallet.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -905,7 +905,7 @@
CODE_SIGN_ENTITLEMENTS = BlueWallet/BlueWallet.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 5;
DEAD_CODE_STRIPPING = NO;
DEVELOPMENT_TEAM = 7F93Z7NQJ4;
ENABLE_BITCODE = NO;
Expand Down Expand Up @@ -953,7 +953,7 @@
CODE_SIGN_ENTITLEMENTS = BlueWallet/BlueWalletRelease.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 2;
CURRENT_PROJECT_VERSION = 5;
DEVELOPMENT_TEAM = 7F93Z7NQJ4;
ENABLE_BITCODE = NO;
"ENABLE_HARDENED_RUNTIME[sdk=macosx*]" = YES;
Expand Down
14 changes: 14 additions & 0 deletions screen/staking/delegationDetails.js
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ const StakingDelegationDetails = () => {
delegation,
});
setIsLoading(false);
setAddFundsModalVisible(false);
} catch (e) {
console.log(e);
setIsLoading(false);
Expand Down Expand Up @@ -300,6 +301,7 @@ const StakingDelegationDetails = () => {
tx,
});
setIsLoading(false);
setWithdrawModalVisible(false);
} catch (e) {
console.log(e);
setIsLoading(false);
Expand Down Expand Up @@ -417,6 +419,18 @@ const StakingDelegationDetails = () => {
<View style={styles.delegationPoolSummaryData}>
<Text>Pool Summary:</Text>

{delegation?.pool_data?.staker_balance?.decimal > 1 ? (
<View>
<Text>Pool status: Active</Text>
</View>
) : (
<View>
<View>
<Text>Pool status: Decommissioned</Text>
</View>
</View>
)}

<View>
<Text>Cost per block: {delegation.pool_data.cost_per_block.decimal} ML</Text>
</View>
Expand Down
6 changes: 3 additions & 3 deletions screen/staking/staking.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ const Staking = () => {
navigation.navigate('Delegation', { delegation: item, walletID: wallet.getID() });
};

const isDecommissioned = item.pool_data.staker_balance.decimal < 1;
const isDecommissioned = item?.pool_data?.staker_balance?.decimal < 1;

// make style for icon
const iconStyle = {
Expand Down Expand Up @@ -203,11 +203,11 @@ const Staking = () => {
}
contentStyle={styles.contentStyle}
subtitleNumberOfLines={2}
rightSubtitle={coin}
// rightSubtitle={coin}
// rightSubtitle={`${dayjs(item.creation_time * 1000).format('YYYY-MM-DD HH:mm')}`}
Component={View}
chevron={false}
rightTitle={`${item.balance / 1e11} ML`}
rightTitle={`${item.balance / 1e11} ${coin}`}
rightContentStyle={styles.rightContentStyle}
rightTitleStyle={[styles.rowTitleStyle, stylesHook.rowTitle]}
containerStyle={containerStyle}
Expand Down
1 change: 0 additions & 1 deletion screen/wallets/transactions-header.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ const WalletTransactionsHeader = () => {
saveToDisk();
})
}
navigation={navigate}
/>
</View>
);
Expand Down

0 comments on commit 26cd557

Please sign in to comment.