stackswap-front-api-test-02 1.1.72 → 1.1.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -424,7 +424,7 @@ class Farm3Manager {
|
|
|
424
424
|
async getFarmDataMinimal(farm, farm_round, block_height, oracle_data, type, current_round = null) {
|
|
425
425
|
farm.valid = false;
|
|
426
426
|
farm.cur_round = farm_round;
|
|
427
|
-
if (current_round && Number(current_round) + 1
|
|
427
|
+
if (current_round && Number(current_round) + 1 < Number(farm_round))
|
|
428
428
|
farm_round = Number(current_round) + 1;
|
|
429
429
|
if (this.localCache[`${farm.token_swapr}|FarmPairData`] == null ||
|
|
430
430
|
Number(this.localCache[`${farm.token_swapr}|FarmPairData`].block_height) < Number(block_height)) {
|
package/package.json
CHANGED
|
@@ -534,7 +534,7 @@ export class Farm3Manager {
|
|
|
534
534
|
async getFarmDataMinimal(farm: any, farm_round: any, block_height: string, oracle_data: { oracle_stx: any, oracle_stsw: any, oracle_lbtc: any }, type : Mode , current_round: number|string|null = null) {
|
|
535
535
|
farm.valid = false;
|
|
536
536
|
farm.cur_round = farm_round;
|
|
537
|
-
if (current_round && Number(current_round) + 1
|
|
537
|
+
if (current_round && Number(current_round) + 1 < Number(farm_round)) farm_round = Number(current_round)+1;
|
|
538
538
|
if(this.localCache[`${farm.token_swapr}|FarmPairData`] == null ||
|
|
539
539
|
Number(this.localCache[`${farm.token_swapr}|FarmPairData`].block_height) < Number(block_height)){
|
|
540
540
|
switch (type) {
|