Bug fixes
This commit is contained in:
parent
029b7a08bd
commit
fb92bf3449
@ -51,7 +51,7 @@
|
|||||||
</header>
|
</header>
|
||||||
<section id="verification_section" class="grid gap-1-5">
|
<section id="verification_section" class="grid gap-1-5">
|
||||||
<div class="grid gap-0-5">
|
<div class="grid gap-0-5">
|
||||||
<h1>KYC verification</h1>
|
<h2>KYC verification</h2>
|
||||||
<P>
|
<P>
|
||||||
Enter the address you want to verify
|
Enter the address you want to verify
|
||||||
</P>
|
</P>
|
||||||
|
|||||||
@ -87,7 +87,7 @@ floGlobals.approvedKycAggregators = {};
|
|||||||
function getApprovedAggregators() {
|
function getApprovedAggregators() {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
floBlockchainAPI.readAllTxs(floGlobals.masterAddress).then(txs => {
|
floBlockchainAPI.readAllTxs(floGlobals.masterAddress).then(txs => {
|
||||||
txs.filter(tx => tx.vin[0].addr === floGlobals.masterAddress && tx.floData.startsWith('KYC'))
|
txs.filter(tx => floCrypto.isSameAddr(tx.vin[0].addr, floGlobals.masterAddress) && tx.floData.startsWith('KYC'))
|
||||||
.reverse()
|
.reverse()
|
||||||
.forEach(tx => {
|
.forEach(tx => {
|
||||||
const { floData, time } = tx;
|
const { floData, time } = tx;
|
||||||
@ -95,7 +95,7 @@ function getApprovedAggregators() {
|
|||||||
switch (operationType) {
|
switch (operationType) {
|
||||||
case 'APPROVE_AGGREGATOR':
|
case 'APPROVE_AGGREGATOR':
|
||||||
operationData.split(',').forEach(aggregator => {
|
operationData.split(',').forEach(aggregator => {
|
||||||
floGlobals.approvedKycAggregators[aggregator] = {
|
floGlobals.approvedKycAggregators[floCrypto.toFloID(aggregator)] = {
|
||||||
validFrom: time * 1000,
|
validFrom: time * 1000,
|
||||||
validTo: validity || Date.now() + 10000000
|
validTo: validity || Date.now() + 10000000
|
||||||
};
|
};
|
||||||
@ -103,7 +103,7 @@ function getApprovedAggregators() {
|
|||||||
break;
|
break;
|
||||||
case 'REVOKE_AGGREGATOR':
|
case 'REVOKE_AGGREGATOR':
|
||||||
operationData.split(',').forEach(aggregator => {
|
operationData.split(',').forEach(aggregator => {
|
||||||
floGlobals.approvedKycAggregators[aggregator].validTo = time * 1000;
|
floGlobals.approvedKycAggregators[floCrypto.toFloID(aggregator)].validTo = time * 1000;
|
||||||
});
|
});
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user