Skip to content

Commit

Permalink
Merge pull request #1808 from velo-tech/master
Browse files Browse the repository at this point in the history
feat: VELO fees
  • Loading branch information
dtmkeng committed Aug 22, 2024
2 parents 0b4b0c8 + 526f96c commit a9e3c8a
Showing 1 changed file with 39 additions and 0 deletions.
39 changes: 39 additions & 0 deletions fees/velo/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import ADDRESSES from '../../helpers/coreAssets.json'
import { FetchOptions, SimpleAdapter } from "../../adapters/types";
import { addTokensReceived } from "../../helpers/token";

const config: any = {
bsc: {
targets: ["0x6C22422f4044dfBA79f4EA6BbB9C09162c3BF912"],
tokens: [
ADDRESSES.bsc.BUSD,
ADDRESSES.bsc.USDT,
ADDRESSES.bsc.WBNB,
"0xf486ad071f3bEE968384D2E39e2D8aF0fCf6fd46", // VELO
"0xBe0D3526fc797583Dada3F30BC390013062A048B" , // PLEARN
"0x80458Df7142Ab707346020A180C44d02271C64Be", // USDV
"0xC2d4A3709e076A7A3487816362994a78ddaeabB6", // EVRY
]
},
};

const fetch = async (options: FetchOptions) => {
const dailyFees = await addTokensReceived({
...config[options.chain],
options,
});

return { dailyFees };
};

const adapters: SimpleAdapter = {
adapter: Object.keys(config).reduce(
(all, chain) => ({
...all,
[chain]: { fetch, start: 1634010700 },
}),
{}
),
version: 2,
};
export default adapters;

0 comments on commit a9e3c8a

Please sign in to comment.