Skip to content

Commit

Permalink
feat: implement affiliate
Browse files Browse the repository at this point in the history
  • Loading branch information
painiteleo authored and painiteleo committed Jul 8, 2024
1 parent 0429133 commit 1a54679
Show file tree
Hide file tree
Showing 40 changed files with 1,880 additions and 1,637 deletions.
Binary file modified bun.lockb
Binary file not shown.
53 changes: 32 additions & 21 deletions contracts/abis/LToken.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,12 @@
"internalType": "int256",
"name": "newId",
"type": "int256"
},
{
"indexed": false,
"internalType": "string",
"name": "referralCode",
"type": "string"
}
],
"name": "ActivityEvent",
Expand Down Expand Up @@ -382,6 +388,11 @@
"internalType": "uint256",
"name": "amount",
"type": "uint256"
},
{
"internalType": "string",
"name": "refCode",
"type": "string"
}
],
"name": "deposit",
Expand Down Expand Up @@ -952,25 +963,25 @@
{
"inputs": [
{
"internalType": "address payable",
"name": "withdrawer_",
"type": "address"
"internalType": "uint256",
"name": "withdrawalFeeInEth_",
"type": "uint256"
}
],
"name": "setWithdrawer",
"name": "setWithdrawalFeeInEth",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "withdrwalFeeInEth_",
"type": "uint256"
"internalType": "address payable",
"name": "withdrawer_",
"type": "address"
}
],
"name": "setWithdrwalFeeInEth",
"name": "setWithdrawer",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
Expand Down Expand Up @@ -1261,6 +1272,19 @@
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [],
"name": "withdrawalFeeInEth",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [
{
Expand Down Expand Up @@ -1310,18 +1334,5 @@
],
"stateMutability": "view",
"type": "function"
},
{
"inputs": [],
"name": "withdrwalFeeInEth",
"outputs": [
{
"internalType": "uint256",
"name": "",
"type": "uint256"
}
],
"stateMutability": "view",
"type": "function"
}
]
Loading

0 comments on commit 1a54679

Please sign in to comment.