proxy.gno
2.84 Kb ยท 89 lines
1package protocol_fee
2
3// DistributeProtocolFee distributes accumulated protocol fees to DevOps and GovStaker.
4//
5// Returns:
6// - map[string]int64: amounts distributed per token
7func DistributeProtocolFee(cur realm) map[string]int64 {
8 return getImplementation().DistributeProtocolFee()
9}
10
11// SetDevOpsPct sets the percentage of protocol fees allocated to DevOps.
12//
13// Parameters:
14// - pct: percentage (0-100)
15func SetDevOpsPct(cur realm, pct int64) {
16 getImplementation().SetDevOpsPct(pct)
17}
18
19// SetGovStakerPct sets the percentage of protocol fees allocated to GovStaker.
20//
21// Parameters:
22// - pct: percentage (0-100)
23func SetGovStakerPct(cur realm, pct int64) {
24 getImplementation().SetGovStakerPct(pct)
25}
26
27// AddToProtocolFee adds tokens to the protocol fee pool.
28//
29// Parameters:
30// - tokenPath: path of the token
31// - amount: amount to add
32func AddToProtocolFee(cur realm, tokenPath string, amount int64) {
33 getImplementation().AddToProtocolFee(tokenPath, amount)
34}
35
36// ClearTokenListWithAmount clears the token list with amounts.
37func ClearTokenListWithAmount(cur realm) {
38 getImplementation().ClearTokenListWithAmount()
39}
40
41// ClearAccuTransferToGovStaker clears accumulated transfers to GovStaker.
42func ClearAccuTransferToGovStaker(cur realm) {
43 getImplementation().ClearAccuTransferToGovStaker()
44}
45
46// GetDevOpsPct returns the DevOps fee percentage.
47func GetDevOpsPct() int64 {
48 return getImplementation().GetDevOpsPct()
49}
50
51// GetGovStakerPct returns the GovStaker fee percentage.
52func GetGovStakerPct() int64 {
53 return getImplementation().GetGovStakerPct()
54}
55
56// GetTokenListWithAmount returns the list of tokens with their amounts.
57func GetTokenListWithAmount() map[string]int64 {
58 return getImplementation().GetTokenListWithAmount()
59}
60
61// GetTokenList returns the list of token paths without amounts.
62func GetTokenList() []string {
63 return getImplementation().GetTokenList()
64}
65
66// GetAmountOfToken returns the amount of a specific token.
67func GetAmountOfToken(tokenPath string) int64 {
68 return getImplementation().GetAmountOfToken(tokenPath)
69}
70
71// GetAccuTransfersToGovStaker returns accumulated transfers to GovStaker.
72func GetAccuTransfersToGovStaker() map[string]int64 {
73 return getImplementation().GetAccuTransfersToGovStaker()
74}
75
76// GetAccuTransfersToDevOps returns accumulated transfers to DevOps.
77func GetAccuTransfersToDevOps() map[string]int64 {
78 return getImplementation().GetAccuTransfersToDevOps()
79}
80
81// GetAccuTransferToGovStakerByTokenPath returns accumulated GovStaker transfer for a token.
82func GetAccuTransferToGovStakerByTokenPath(tokenPath string) int64 {
83 return getImplementation().GetAccuTransferToGovStakerByTokenPath(tokenPath)
84}
85
86// GetAccuTransferToDevOpsByTokenPath returns accumulated DevOps transfer for a token.
87func GetAccuTransferToDevOpsByTokenPath(tokenPath string) int64 {
88 return getImplementation().GetAccuTransferToDevOpsByTokenPath(tokenPath)
89}