diff --git a/container/src/hledger-flow/accounts/blockchain-explorers/ethereum-based/rules.d/lending.d/compound.rules b/container/src/hledger-flow/accounts/blockchain-explorers/ethereum-based/rules.d/lending.d/compound.rules index b2495d0..5c5f758 100644 --- a/container/src/hledger-flow/accounts/blockchain-explorers/ethereum-based/rules.d/lending.d/compound.rules +++ b/container/src/hledger-flow/accounts/blockchain-explorers/ethereum-based/rules.d/lending.d/compound.rules @@ -15,14 +15,19 @@ # You should have received a copy of the GNU General Public License # along with this program. If not, see . -# ---------------------------------------------------------------------------- # -# Compound V2 # -# ---------------------------------------------------------------------------- # +# ------------------------------------------------------------------------- # +# Compound # +# ------------------------------------------------------------------------- # + +# 0x3d9819210A31b4961b30EF54bE2aeD79B9c9Cd3B - Compound: Comptroller (V2) # 0x39aa39c021dfbae8fac545936693ac917d5e7563 - Compound: cUSDC # 0x4ddc2d193948926d02f9b1fe9e1daa0718270ed5 - Compound: cETH # 0x5d3a536e4d6dbd6114cc1ead35777bab948e3643 - Compound: cDAI # 0xf650c3d88d12db855b8bf7d11be6c55a4e07dcc9 - Compound: cUSDT + +# 0xc00e94Cb662C3520282E6f5717214004A7f26888 - Compound: COMP Token Distribution + # TODO: expand as needed # @@ -107,4 +112,14 @@ if %to_address (^0x39aa39c021dfbae8fac545936693ac917d5e7563$|^0x4ddc2d193948926d account1 equity:%account_name:%subaccount_name:%blockchain:receivable:loans:%symbol account2 equity:%account_name:%subaccount_name:%blockchain:receivable:loans:%symbol +# +# Compound: Income (COMP rewards) +# + +if %direction ^IN$ +& %contract_address ^0xc00e94cb662c3520282e6f5717214004a7f26888$ +& %from_address ^0x3d9819210a31b4961b30ef54be2aed79b9c9cd3b$ + account2 income:%account_name:%subaccount_name:%blockchain:%symbol + comment2 %date +0000,INCOME,%account_name:%subaccount_name:%blockchain,%symbol,%amount_,USD,,COMP rewards + # vim: sw=2 sts=2 si ai et