refactor: better attribute name for Pancakeswapv3 module (#179)
Also fixes an issue with inconsistent version tag between cargo and substreams files Co-authored-by: zizou <111426680+flopell@users.noreply.github.com>
This commit is contained in:
@@ -204,7 +204,7 @@ fn event_to_attributes_updates(event: PoolEvent) -> Vec<(Transaction, PoolAddres
|
||||
.into(),
|
||||
hex::decode(&event.pool_address).unwrap(),
|
||||
Attribute {
|
||||
name: "protocol_fees/zeroForOne".to_string(),
|
||||
name: "protocol_fees/zero2one".to_string(),
|
||||
value: BigInt::from(zero_to_one).to_signed_bytes_be(),
|
||||
change: ChangeType::Update.into(),
|
||||
},
|
||||
@@ -213,7 +213,7 @@ fn event_to_attributes_updates(event: PoolEvent) -> Vec<(Transaction, PoolAddres
|
||||
event.transaction.unwrap().into(),
|
||||
hex::decode(event.pool_address).unwrap(),
|
||||
Attribute {
|
||||
name: "protocol_fees/oneForZero".to_string(),
|
||||
name: "protocol_fees/one2zero".to_string(),
|
||||
value: BigInt::from(one_to_zero).to_signed_bytes_be(),
|
||||
change: ChangeType::Update.into(),
|
||||
},
|
||||
@@ -255,7 +255,7 @@ fn event_to_attributes_updates(event: PoolEvent) -> Vec<(Transaction, PoolAddres
|
||||
.into(),
|
||||
hex::decode(&event.pool_address).unwrap(),
|
||||
Attribute {
|
||||
name: "protocol_fees/zeroForOne".to_string(),
|
||||
name: "protocol_fees/zero2one".to_string(),
|
||||
value: BigInt::from(sfp.fee_protocol_0_new).to_signed_bytes_be(),
|
||||
change: ChangeType::Update.into(),
|
||||
},
|
||||
@@ -264,7 +264,7 @@ fn event_to_attributes_updates(event: PoolEvent) -> Vec<(Transaction, PoolAddres
|
||||
event.transaction.unwrap().into(),
|
||||
hex::decode(event.pool_address).unwrap(),
|
||||
Attribute {
|
||||
name: "protocol_fees/oneForZero".to_string(),
|
||||
name: "protocol_fees/one2zero".to_string(),
|
||||
value: BigInt::from(sfp.fee_protocol_1_new).to_signed_bytes_be(),
|
||||
change: ChangeType::Update.into(),
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user