Skip to content

Commit

Permalink
Merge pull request #139 from VerusCoin/dev
Browse files Browse the repository at this point in the history
v1.0.3
  • Loading branch information
Asherda authored Oct 27, 2023
2 parents 78e8aaf + 4f63c76 commit c657d83
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 47 deletions.
2 changes: 1 addition & 1 deletion App.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import BigNumber from 'bignumber.js';
import Colors from './src/globals/colors';
import {GestureHandlerRootView} from 'react-native-gesture-handler';

BigNumber.set({EXPONENTIAL_AT: 1000000});
BigNumber.set({ EXPONENTIAL_AT: 1000000, ROUNDING_MODE: BigNumber.ROUND_FLOOR });

const fontConfig = {
default: {
Expand Down
2 changes: 1 addition & 1 deletion android/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.android.build.OutputFile

def versionMajor = 1
def versionMinor = 0
def versionRevision = 2
def versionRevision = 3
def versionBuild = 0

def keystorePropertiesFile = rootProject.file("keystore.properties");
Expand Down
2 changes: 1 addition & 1 deletion env/main.android.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"APP_VERSION": "1.0.2",
"APP_VERSION": "1.0.3",
"ELECTRUM_PROTOCOL_CHANGE": 1.4,

"KEY_DERIVATION_VERSION": 1,
Expand Down
2 changes: 1 addition & 1 deletion env/main.ios.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"APP_VERSION": "1.0.2",
"APP_VERSION": "1.0.3",
"ELECTRUM_PROTOCOL_CHANGE": 1.4,

"KEY_DERIVATION_VERSION": 1,
Expand Down
2 changes: 1 addition & 1 deletion ios/assets/env/main.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"APP_VERSION": "1.0.2",
"APP_VERSION": "1.0.3",
"ELECTRUM_PROTOCOL_CHANGE": 1.4,

"KEY_DERIVATION_VERSION": 1,
Expand Down
4 changes: 2 additions & 2 deletions ios/verusMobile.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@
"\"${PODS_CONFIGURATION_BUILD_DIR}/react-native-webview\"",
"\"${PODS_CONFIGURATION_BUILD_DIR}/rn-fetch-blob\"",
);
MARKETING_VERSION = 1.0.2;
MARKETING_VERSION = 1.0.3;
PRODUCT_BUNDLE_IDENTIFIER = org.reactjs.native.verusmobile;
PRODUCT_NAME = verusmobile;
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down Expand Up @@ -792,7 +792,7 @@
"\"${PODS_CONFIGURATION_BUILD_DIR}/react-native-webview\"",
"\"${PODS_CONFIGURATION_BUILD_DIR}/rn-fetch-blob\"",
);
MARKETING_VERSION = 1.0.2;
MARKETING_VERSION = 1.0.3;
PRODUCT_BUNDLE_IDENTIFIER = org.reactjs.native.verusmobile;
PRODUCT_NAME = verusmobile;
PROVISIONING_PROFILE_SPECIFIER = "";
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "verusmobile",
"version": "1.0.2",
"version": "1.0.3",
"private": true,
"scripts": {
"postinstall": "./node_modules/.bin/rn-nodeify --hack --install --yarn && npx jetify",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,8 +209,6 @@ const ConvertOrCrossChainSendForm = ({ setLoading, setModalHeight, updateSendFor
return !x.mapping && x.prelaunch
} else return !x.mapping && !x.prelaunch
}).map((path, index) => {
const priceFixed = Number(path.price.toFixed(2))

return {
title: path.destination.fullyqualifiedname,
logoid: path.destination.currencyid,
Expand All @@ -236,13 +234,7 @@ const ConvertOrCrossChainSendForm = ({ setLoading, setModalHeight, updateSendFor
: '',
[SEND_MODAL_PRICE_ESTIMATE]: { price: path.price, name: path.destination.fullyqualifiedname }
},
right: `${
priceFixed === 0
? '<0.01'
: priceFixed === path.price
? priceFixed
: `~${priceFixed}`
}`,
right: `${Number(BigNumber(1).dividedBy(BigNumber(path.price)).toFixed(8))}`,
keywords: [path.destination.currencyid, path.destination.fullyqualifiedname]
};
});
Expand All @@ -251,7 +243,6 @@ const ConvertOrCrossChainSendForm = ({ setLoading, setModalHeight, updateSendFor
return flatPaths.filter(x => {
return !x.mapping
}).map((path, index) => {
const priceFixed = Number(path.price.toFixed(2))
const addr = path.ethdest ? path.destination.address : null;

const name = path.ethdest
Expand Down Expand Up @@ -286,13 +277,7 @@ const ConvertOrCrossChainSendForm = ({ setLoading, setModalHeight, updateSendFor
: '',
[SEND_MODAL_PRICE_ESTIMATE]: { price: path.price, name: name }
},
right: `${
priceFixed === 0
? '<0.01'
: priceFixed === path.price
? priceFixed
: `~${priceFixed}`
}`,
right: `${Number(BigNumber(1).dividedBy(BigNumber(path.price)).toFixed(8))}`,
keywords: path.ethdest
? [path.destination.address, path.destination.symbol, path.destination.name]
: [path.destination.currencyid, path.destination.fullyqualifiedname]
Expand All @@ -317,8 +302,6 @@ const ConvertOrCrossChainSendForm = ({ setLoading, setModalHeight, updateSendFor
);
} else return x.via != null;
}).map((path, index) => {
const priceFixed = Number(path.price.toFixed(2))

return {
title: path.via.fullyqualifiedname,
logoid: path.via.currencyid,
Expand All @@ -338,13 +321,7 @@ const ConvertOrCrossChainSendForm = ({ setLoading, setModalHeight, updateSendFor
: '',
[SEND_MODAL_PRICE_ESTIMATE]: { price: path.price, name: path.destination.fullyqualifiedname }
},
right: `${
priceFixed === 0
? '<0.01'
: priceFixed === path.price
? priceFixed
: `~${priceFixed}`
}`,
right: `${Number(BigNumber(1).dividedBy(BigNumber(path.price)).toFixed(8))}`,
keywords: [path.via.currencyid, path.via.fullyqualifiedname]
};
})
Expand Down Expand Up @@ -392,13 +369,7 @@ const ConvertOrCrossChainSendForm = ({ setLoading, setModalHeight, updateSendFor
: '',
[SEND_MODAL_PRICE_ESTIMATE]: { price: path.price, name: destname }
},
right: `${
priceFixed === 0
? '<0.01'
: priceFixed === path.price
? priceFixed
: `~${priceFixed}`
}`,
right: `${Number(BigNumber(1).dividedBy(BigNumber(path.price)).toFixed(8))}`,
keywords: [path.via.currencyid, path.via.fullyqualifiedname]
};
})
Expand Down Expand Up @@ -1026,7 +997,7 @@ const ConvertOrCrossChainSendForm = ({ setLoading, setModalHeight, updateSendFor
right={() =>
selectedField !== SEND_MODAL_EXPORTTO_FIELD && selectedField !== SEND_MODAL_MAPPING_FIELD ? (
<Text style={{...Styles.listItemTableCell, fontWeight: 'bold'}}>
{sendModal.coinObj.display_ticker + ' price estimate'}
{'est. price in ' + sendModal.coinObj.display_ticker}
</Text>
) : null
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,11 +224,7 @@ export const getCurrencyConversionPaths = async (systemId, src, ethNetwork) => {
: null;

for (const destinationid in paths) {
paths[destinationid] = paths[destinationid].filter(x => {
const offSystem = (x.destination.systemid != systemId) || (x.via != null && x.via.systemid != systemId);

return !(offSystem && x.exportto == null);
}).map(x => {
paths[destinationid] = paths[destinationid].map(x => {
if (prelaunchCurrencyIds != null && prelaunchCurrencyIds.includes(x.destination.currencyid)) {
return {
...x,
Expand Down

0 comments on commit c657d83

Please sign in to comment.