glifio / go-pools

The GoLang SDK for GLIF Pools Protocol
Apache License 2.0
4 stars 2 forks source link

Add initial framework for margin helpers #97

Closed Schwartz10 closed 2 months ago

Schwartz10 commented 2 months ago

@ganzai-san one thing to note here is in the Margin helper method, we use the total balance to calculate the margin, not just the initial pledge + vesting balance. That seems to make more sense to me