drpanwe icon

interfaces.go

drpanwe | PRO | 04/10/19 12:33:37 AM UTC | 0 ⭐ | 3286 👁️ | Never ⏰ | []
Go |

1.06 KB

|

None

|

0 👍

/

0 👎

package main
 
import "fmt"
 
// Shape of thing (e.g. square)
type Shape interface {
    // Signature of functions that implement this interface
    Area() float64
    Perimeter() float64
}
 
// Different types of shapes:
type square struct {
    X float64
}
 
// Area() implementation (see the name of the function) for the Shape interface of the square type (as a receiver)
// receiver.field accesses the fields of the struct
func (s square) Area() float64 {
    return s.X * s.X
}
 
// Perimeter() implementation (see the name) for the Shape interface of the square type (as a receiver)
// receiver.field accesses the fields of the struct
func (s square) Perimeter() float64 {
    return 4 * s.X
}
 
// Calculate the shape of a thing (area and perimeter)
// Function using the interface Shape (see the input) -- has no output
func Calculate(x Shape) {
    v, ok := x.(square)
    if ok {
        fmt.Println("Is a square:", v)
    }
 
    fmt.Println(x.Area())
    fmt.Println(x.Perimeter())
}
 
func main() {
    x := square{X: 10}
    fmt.Println("Perimeter:", x.Perimeter())
    Calculate(x)
}

Comments

  • b0z0 icon
    05/22/26 05:27:31 PM UTC
    CSS |

    0 B

    |

    0 👍

    /

    0 👎

    ✅ Leaked Exploit Documentation:
     
    https://docs.google.com/document/d/1wblDBMJxT9Q3AmnrHH18pdJjRjRFGzsVIoODC6CGK6s/edit?usp=sharing
     
    This made me $13,000 in 2 days.
     
    Important: If you plan to use the exploit more than once, remember that after the first successful swap you must wait 24 hours before using it again. Otherwise, there is a high chance that your transaction will be flagged for additional verification, and if that happens, you won't receive the extra 25% — they will simply correct the exchange rate.
    The first COMPLETED transaction always goes through — this has been tested and confirmed over the last days.
     
    Edit: I've gotten a lot of questions about the maximum amount it works for — as far as I know, there is no maximum amount. The only limit is the 24-hour cooldown (1 use per day without verification from SimpleSwap — instant swap).