Feat/nexus-mutual fee & revenue#5047
Conversation
|
The nexus-mutual.ts adapter exports: |
g1nt0ki
left a comment
There was a problem hiding this comment.
hi @0x4r45h
- Can you instead use on chain data
- payouts can be treated as negative fees since we are treating the yield as fees
- I think there is some confusion, capital pool is where LPs deposit funds? if so, we treat the premium sent to them as supply side revenue, revenue = what goes to the stakers & team, and holder revenue is what goes to the stakers, protocol revenue is what goes to the team
|
The nexus-mutual.ts adapter exports: |
Hey @g1nt0ki, thanks for your review.
When someone buys a cover: Now I can see this from two perspectives:
OR
Which one is better, or do you have any better suggestions? |
|
1, hmm, can you keep it as v1, this way, we run it only once a day |
|
The nexus-mutual.ts adapter exports: |
add COALESCE to handle nulls remove unused selected columns
|
The nexus-mutual.ts adapter exports: |
|
The nexus-mutual.ts adapter exports: |
* nexus-mutual fee and revenue * fix indents * add paid claims to nexus-mutual * optimize the query * change adapter to v1 * combine queries into a single one add COALESCE to handle nulls remove unused selected columns * refactor --------- Co-authored-by: treeoflife2 <[email protected]>
closes #4816
This is an insurance protocol. Members who want to buy insurance pay premiums to the protocol (fees). If an incident happens, claims are paid out from these collected premiums. I'm not sure where to show payouts data.
At first, I thought to deduct claims from premiums and show the remaining amount as revenue. But this approach seems naive , and on some days revenue could become negative if claims are high.