Skip to content

Instantly share code, notes, and snippets.

View TilakMaddy's full-sized avatar

Tilak Madichetti TilakMaddy

  • Siemens
  • /dev/null
View GitHub Profile
@TilakMaddy
TilakMaddy / ccip contract report.md
Created March 29, 2024 17:33
CCIP contract report

Aderyn Analysis Report

This report was generated by Aderyn, a static analysis tool built by Cyfrin, a blockchain security company. This report is not a substitute for manual audit or security review. It should not be relied upon for any purpose other than to assist in the identification of potential security vulnerabilities.

Table of Contents

@TilakMaddy
TilakMaddy / liquidationPool.md
Last active December 30, 2023 07:51
liquidation pool

This test file is part of the ongoing contest on codehawks for The Standard Token. Therefore I cannot reveal the details of what's inside EvilHolder.sol however from the deployment perspective I can show some of the changes that I have made to the liquidationPool.js file.

const { expect } = require("chai");
const { ethers } = require("hardhat");
const { BigNumber } = ethers;
const { mockTokenManager, DEFAULT_COLLATERAL_RATE, TOKEN_ID, rewardAmountForAsset, DAY, fastForward, POOL_FEE_PERCENTAGE, DEFAULT_EUR_USD_PRICE } = require("./common");
require("@nomiclabs/hardhat-ethers");
@TilakMaddy
TilakMaddy / mob-coding-challenge.js
Last active June 20, 2019 11:41
A saved mob programming session with Learn Teach Code!
// Type JavaScript here!
console.log("Lets do it ! ");
var x = 459;
console.log(x);
@TilakMaddy
TilakMaddy / Main.java
Last active November 19, 2023 12:55
A Java Starter Template for competitive programming in CodeChef, Hackerrank, etc w/ efficient coding rules and pre-designed pattern Ready to Use
/*
* No package must be added here because some Online Judges don't support it
* please remove, if any.
*
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/*
@TilakMaddy
TilakMaddy / xor_swap
Created March 6, 2017 12:32
XOR swapping algorithm
When you got two numbers ` a = 9 ` and ` b = 7 `
On performing
a ^= b
b ^= a
a ^= b
a abd b interchange values hence