Skip to content

Commit

Permalink
Merge pull request #1715 from Define101/master
Browse files Browse the repository at this point in the history
fix betmode
  • Loading branch information
Define101 authored Jul 26, 2024
2 parents 35b2682 + 28d0fc5 commit 77ccd33
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions fees/betmode.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
import { FetchOptions, SimpleAdapter } from "../adapters/types";
import { CHAIN } from "../helpers/chains";

const address = '0x79b4be7eD13Eef58Bd15ABd6ed79569f21D6c3AF'
const address = '0xeb5D5af6a0ac3B64243858094d6b3b379B8772Aa'
const fetch = async (options: FetchOptions) => {
const dailyFees = options.createBalances();
const feesStart = await options.fromApi.call({target: address, abi: "uint:totalWagered"})
const feesEnd = await options.toApi.call({target: address, abi: "uint:totalWagered"})
dailyFees.add("0xDfc7C877a950e49D2610114102175A06C2e3167a", feesEnd-feesStart)
dailyFees.resizeBy(0.01)
return {dailyFees, dailyRevenue: dailyFees}
const feesStart = await options.fromApi.call({ target: address, abi: "uint:GGR" })
const feesEnd = await options.toApi.call({ target: address, abi: "uint:GGR" })
dailyFees.add("0xd988097fb8612cc24eeC14542bC03424c656005f", feesEnd - feesStart)
dailyFees.resizeBy(0.065)
return { dailyFees, dailyRevenue: dailyFees }
}

const adapter: SimpleAdapter = {
Expand Down

0 comments on commit 77ccd33

Please sign in to comment.