You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
category (*only required for Standard Track): <Core>
9
9
created: 2024-07-12
10
10
---
11
11
12
12
13
-
# FIP-TBD: More API between user-programmed actors and built-in miner actors for building decentralized staking protocol
13
+
# FIP-TBD: Export sector termination method from miner actor
14
14
15
15
## Simple Summary
16
16
17
-
Export additional built-in miner actor methods for invocation by user actors, so to enable more decentralized DeFi protocol for Storage Provider (SP) services.
17
+
Adds a new `TerminateSectors2` (method 37) that allow callers define the max amount of sector termination to execute immediately.
18
+
Export additional built-in miner actor methods, including the new `TerminateSectors` method for invocation by user actors, so to enable more decentralized DeFi protocol for Storage Provider (SP) services.
18
19
19
20
## Abstract
20
21
21
22
Upon the FEVM launch, [FIP-0050](https://github.com/filecoin-project/FIPs/blob/master/FIPS/fip-0050.md) was also introduced with a list of the builtin actor methods that are exposed as callables from user actors. Since then, we’ve seen a number of protocols build lending or leasing applications around Miner Actors collateral & rewards. As common practice in DeFi, protocols often introduce a “liquidation” procedure that liquidates a borrower’s collateral to derisk the liquidity providers from losing lent out funds. In the process of Filecoin leasing applications, a liquidation means termination of a miner’s active sectors, facing a penalty, but recovering pledged collateral to return to liquidity providers. Economic security of applications being built on the FEVM is important for developing trust and attracting outside capital / liquidity / investors, and understanding precise collateral values for any given miner actor is critical for a DeFi protocol’s economic security.
22
23
23
-
This FIP aims to introduce more exported APIs in miner actor for supporting onchain liquidation procedure for decentralized staking protocol.
24
+
This FIP aims to introduce more exported APIs in miner actor for supporting onchain liquidation procedure for decentralized staking protocol. The main one, is a method that allows user actors to terminate sectors.
24
25
25
26
## Change Motivation
26
27
@@ -42,9 +43,16 @@ This FIPs propose builtin actors APIs that can provide information/functionaliti
42
43
43
44
Following the FIP-0050 specification for exported builin actor methods in, we add a set of additional methods.
44
45
45
-
### Operation
46
+
**TerminateSectors2** In Miner Actor
46
47
47
-
**TerminateSectors** In Miner Actor
48
+
To allow caller (storage providers, stake pools and etc) to have more precised control over the amount of the sectors to be terminated based on their operational needs, this FIP introduces a new `TerminatedSector2` method. This method follows most of the behaviour of the existing `TerminateSectors` method, notably:
49
+
- Only a control address of the miner actor can call this method.
50
+
- Terminating sectors that is in the current or the next deadline to prove will fail with `USR_ILLEGAL_ARGUMENT`.
51
+
- The method will always process the sector that is already in the `early_termination` queue before processing newly submitted sectors.
52
+
53
+
It does the following differently:
54
+
- Instead of a hardcoded max amount of termination (3000 sectors), It takes a `max_termination` /...
55
+
- It will not add sectors to the terminatoon queue.
48
56
49
57
Export the existing TerminateSectors method with the following change:
50
58
@@ -93,7 +101,7 @@ No new method is being introduced that can be used to attack the network, and bu
93
101
94
102
## Product and Incentive Considerations
95
103
96
-
This FIP enables more trustless and decentralized staking and DeFi protocol for token holders to partipate in. Staking and Defi protocol can drive Filecoin onchain activities, improve FIL utilities and enabling more (1) storage providers to get liquidity to join the network and prvoide storage services & secure the network consensus (2) token holders to put their FIL into use and improve Filecoin GDP.
104
+
This FIP enables more trustless and decentralized staking and DeFi protocol for token holders to partipate in. Staking and Defi protocol can drive Filecoin onchain activities, improve FIL utilities and enabling more (1) storage providers to get liquidity to join the network and provide storage services & secure the network consensus (2) token holders to put their FIL into use and improve Filecoin GDP.
0 commit comments