'use strict';

const Router = require('koa-router');
const router = new Router();

const noop = require('./api/noop');
const stats = require('./api/stats');
const supply = require('./api/supply');
const price = require('./api/price');
//const gov = require('./api/stats/gov');
//const cmc = require('./api/cmc');
const rewards = require('./api/rewards');
const tvl = require('./api/tvl');
const multichainVaults = require('./api/vaults');
//const { plfybuyback } = require('./api/stats/plfybuyback/index');



/** Routers **/

router.get('/apy', stats.apy);
router.get('/apy/breakdown', stats.apyBreakdowns);
//router.get('/plfybuyback', plfybuyback);

router.get('/tvl', tvl.vaultTvl);
//router.get('/cmc', cmc.vaults);

router.get('/supply', supply.supply);
router.get('/supply/total', supply.total);
router.get('/supply/circulating', supply.circulating);

//router.get('/earnings', gov.earnings);
//router.get('/holders', gov.holderCount);
router.get('/pending-rewards', rewards.pendingPLFY);

router.get('/lps', price.lpsPrices);
router.get('/prices', price.tokenPrices);

router.get('/vaults', multichainVaults.multichainVaults);

router.get('/', noop);

module.exports = router;
