@@ -7,7 +7,7 @@ import "../upgrades/GraphUpgradeable.sol";
7
7
8
8
import "./CurationStorage.sol " ;
9
9
import "./ICuration.sol " ;
10
- import "./GraphSignalToken .sol " ;
10
+ import "./GraphCurationToken .sol " ;
11
11
12
12
/**
13
13
* @title Curation contract
@@ -16,9 +16,9 @@ import "./GraphSignalToken.sol";
16
16
* subgraph deployment they curate.
17
17
* A curators deposit goes to a curation pool along with the deposits of other curators,
18
18
* only one such pool exists for each subgraph deployment.
19
- * The contract mints Graph Signal Tokens (GST ) according to a bonding curve for each individual
19
+ * The contract mints Graph Curation Shares (GCS ) according to a bonding curve for each individual
20
20
* curation pool where GRT is deposited.
21
- * Holders can burn GST tokens using this contract to get GRT tokens back according to the
21
+ * Holders can burn GCS using this contract to get GRT tokens back according to the
22
22
* bonding curve.
23
23
*/
24
24
contract Curation is CurationV1Storage , GraphUpgradeable , ICuration {
@@ -196,11 +196,11 @@ contract Curation is CurationV1Storage, GraphUpgradeable, ICuration {
196
196
curationPool.reserveRatio = defaultReserveRatio;
197
197
198
198
// If no signal token for the pool - create one
199
- if (address (curationPool.gst ) == address (0 )) {
199
+ if (address (curationPool.gcs ) == address (0 )) {
200
200
// TODO: the gas cost of deploying the subgraph token can be greatly optimized
201
201
// by deploying a proxy each time, sharing the same implementation
202
- curationPool.gst = IGraphSignalToken (
203
- address (new GraphSignalToken ( " GST " , address (this )))
202
+ curationPool.gcs = IGraphCurationToken (
203
+ address (new GraphCurationToken ( address (this )))
204
204
);
205
205
}
206
206
}
@@ -216,7 +216,7 @@ contract Curation is CurationV1Storage, GraphUpgradeable, ICuration {
216
216
"Cannot transfer tokens to deposit "
217
217
);
218
218
219
- // Exchange GRT tokens for GST of the subgraph pool
219
+ // Exchange GRT tokens for GCS of the subgraph pool
220
220
uint256 signal = _mintSignal (curator, _subgraphDeploymentID, _tokens);
221
221
222
222
emit Signalled (curator, _subgraphDeploymentID, _tokens, signal);
@@ -293,10 +293,10 @@ contract Curation is CurationV1Storage, GraphUpgradeable, ICuration {
293
293
view
294
294
returns (uint256 )
295
295
{
296
- if (address (pools[_subgraphDeploymentID].gst ) == address (0 )) {
296
+ if (address (pools[_subgraphDeploymentID].gcs ) == address (0 )) {
297
297
return 0 ;
298
298
}
299
- return pools[_subgraphDeploymentID].gst .balanceOf (_curator);
299
+ return pools[_subgraphDeploymentID].gcs .balanceOf (_curator);
300
300
}
301
301
302
302
/**
@@ -310,10 +310,10 @@ contract Curation is CurationV1Storage, GraphUpgradeable, ICuration {
310
310
view
311
311
returns (uint256 )
312
312
{
313
- if (address (pools[_subgraphDeploymentID].gst ) == address (0 )) {
313
+ if (address (pools[_subgraphDeploymentID].gcs ) == address (0 )) {
314
314
return 0 ;
315
315
}
316
- return pools[_subgraphDeploymentID].gst .totalSupply ();
316
+ return pools[_subgraphDeploymentID].gcs .totalSupply ();
317
317
}
318
318
319
319
/**
@@ -424,7 +424,7 @@ contract Curation is CurationV1Storage, GraphUpgradeable, ICuration {
424
424
// Update GRT tokens held as reserves
425
425
curationPool.tokens = curationPool.tokens.add (_tokens);
426
426
// Mint signal to the curator
427
- curationPool.gst .mint (_curator, signal);
427
+ curationPool.gcs .mint (_curator, signal);
428
428
429
429
return signal;
430
430
}
@@ -449,7 +449,7 @@ contract Curation is CurationV1Storage, GraphUpgradeable, ICuration {
449
449
// Update GRT tokens held as reserves
450
450
curationPool.tokens = curationPool.tokens.sub (outTokens);
451
451
// Burn signal from curator
452
- curationPool.gst .burnFrom (_curator, _signal);
452
+ curationPool.gcs .burnFrom (_curator, _signal);
453
453
454
454
return (tokens, withdrawalFees);
455
455
}
0 commit comments