Skip to content

Commit

Permalink
Merge pull request #55 from nation3/54-sablier-streams
Browse files Browse the repository at this point in the history
refactor: remove ops guild
  • Loading branch information
aahna-ashina authored May 18, 2024
2 parents 4eee4b9 + 448a64d commit 7eb5ab6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
1 change: 0 additions & 1 deletion .env.sample
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@ NATION_ADDRESS=0x333A4823466879eeF910A04D473505da62142069
VENATION_ADDRESS=0xF7deF1D2FBDA6B74beE7452fdf7894Da9201065d
DAO_AGENT_ADDRESS=0x5afEb7F3259A25EB21287e3A917BeE3d4dE58dAf
DAO_CRITICAL_AGENT_ADDRESS=0xE3554d26A6BE2D2DF942975BDD06B8513b29efD6
OPS_GUILD_ADDRESS=0x7eB51dd0AB4240681343dFf061f203C7DcfE7082
7 changes: 3 additions & 4 deletions api/circulating-supply.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,12 @@ export default async (request: VercelRequest, response: VercelResponse) => {
nationContract.totalSupply(),
nationContract.balanceOf(process.env.VENATION_ADDRESS),
nationContract.balanceOf(process.env.DAO_AGENT_ADDRESS),
nationContract.balanceOf(process.env.DAO_CRITICAL_AGENT_ADDRESS),
nationContract.balanceOf(process.env.OPS_GUILD_ADDRESS)
nationContract.balanceOf(process.env.DAO_CRITICAL_AGENT_ADDRESS)
])

const [totalSupply, veNationSupply, daoAgentSupply, daoCriticalAgentSupply, opsGuildSupply] = supplies
const [totalSupply, veNationSupply, daoAgentSupply, daoCriticalAgentSupply] = supplies

const circulatingSupply = totalSupply.sub(veNationSupply).sub(daoAgentSupply).sub(daoCriticalAgentSupply).sub(opsGuildSupply)
const circulatingSupply = totalSupply.sub(veNationSupply).sub(daoAgentSupply).sub(daoCriticalAgentSupply)

response.status(200).send(ethers.utils.formatUnits(circulatingSupply, 18))
}

0 comments on commit 7eb5ab6

Please sign in to comment.