Skip to content

Commit e47af2f

Browse files
committed
update wip
1 parent 59300d5 commit e47af2f

File tree

1 file changed

+18
-10
lines changed

1 file changed

+18
-10
lines changed

FIPS/fip-tbd.md

Lines changed: 18 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,27 @@
11
---
22
fip: "tbd"
3-
title: More API between user-programmed actors and built-in miner actor for building decentralized staking protocol
4-
author: @Schwartz10, @jennijuju
5-
discussions-to:
3+
title: Export sector termination method from miner acto
4+
author: @jennijuju, @Schwartz10, @anorth
5+
discussions-to: https://github.com/filecoin-project/FIPs/discussions/1034
66
status: Draft
7-
type: https://github.com/filecoin-project/FIPs/discussions/1034
7+
type: Technical
88
category (*only required for Standard Track): <Core>
99
created: 2024-07-12
1010
---
1111

1212

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
1414

1515
## Simple Summary
1616

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.
1819

1920
## Abstract
2021

2122
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.
2223

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.
2425

2526
## Change Motivation
2627

@@ -42,9 +43,16 @@ This FIPs propose builtin actors APIs that can provide information/functionaliti
4243

4344
Following the FIP-0050 specification for exported builin actor methods in, we add a set of additional methods.
4445

45-
### Operation
46+
**TerminateSectors2** In Miner Actor
4647

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.
4856

4957
Export the existing TerminateSectors method with the following change:
5058

@@ -93,7 +101,7 @@ No new method is being introduced that can be used to attack the network, and bu
93101

94102
## Product and Incentive Considerations
95103

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.
97105

98106

99107
## Implementation

0 commit comments

Comments
 (0)