Skip to content

Commit

Permalink
Merge pull request #15 from srdarkseer/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
srdarkseer authored Apr 23, 2024
2 parents e4c5cd7 + 3572e2b commit 819c1e4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
7 changes: 1 addition & 6 deletions src/lib/contractABI.ts
Original file line number Diff line number Diff line change
Expand Up @@ -47,12 +47,7 @@ export const saiContractABI = [
{
anonymous: false,
inputs: [
{
indexed: true,
internalType: "address",
name: "from",
type: "address",
},
{ indexed: true, internalType: "address", name: "from", type: "address" },
{ indexed: true, internalType: "address", name: "to", type: "address" },
{
indexed: false,
Expand Down
5 changes: 4 additions & 1 deletion src/views/Landing/components/PopUpModal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,10 @@ const PopUpModal = ({ isOpen }: { isOpen: boolean }) => {

const recipientAddress = `${process.env.SAI_CONTRACT_ADDRESS}`; // Address of the recipient
const decimals = 18; // Number of decimals the $AI token uses
const amountToSend = ethers.utils.parseUnits("1.0", decimals); // '1.0' represents 1 $AI token
const amountToSend = ethers.utils.parseUnits(
(parseInt(numRows) / 10).toString(),
decimals
); // '1.0' represents 1 $AI token

if (contract && signer) {
const tx = await contract
Expand Down

0 comments on commit 819c1e4

Please sign in to comment.