Use secure subgraph URL and update fees (#639)

* Add Archly Finance yields

* Fix subgraph queries and use APR for gauges

* Include APR for base and reward

* Removing apyBase as it requires locking Arc to
obtain trading fees

* Use uppercase for symbols

* Update to add rule for locking assets for yield

* Update README to reflect APY should not be
included if the reward/fee is locked from claiming
- Also readded baseAPY back for Archly trading fees

* Use secure subgraph URL and update fee percentage

* Update to match deployed yield server code
This commit is contained in:
tec05
2023-03-08 22:13:31 -08:00
committed by GitHub
parent a2378e6122
commit 4fc6737d54
2 changed files with 3 additions and 3 deletions

View File

@@ -5,8 +5,8 @@ const utils = require('../utils');
const { getArcPrice, getPairs } = require('./subgraph');
const GAUGE_ABI = require('./gauge_abi.json');
const STABLE_FEE_PERCENTAGE = 0.003;
const VARIABLE_FEE_PERCENTAGE = 0.003;
const STABLE_FEE_PERCENTAGE = 0.005;
const VARIABLE_FEE_PERCENTAGE = 0.005;
const CHAIN = 'telos';

View File

@@ -3,7 +3,7 @@ const BN = require('bignumber.js');
const ARC_USDC_PAIR_ADDRESS = '0xeab0f20cb5536f07135f9d32c93fc77911317ab6';
const ARC_USDT_PAIR_ADDRESS = '0x309c5c0285d8051f7d4921b108526c173ef43507';
const AMM_SUBGRAPH_URL = 'http://api.archly.fi/subgraphs/name/archly/amm';
const AMM_SUBGRAPH_URL = 'https://api.archly.fi/subgraphs/name/archly/amm';
const pairsQuery = gql`
query PairsQuery {